---
description: >-
  This page outlines steps to create and update vector tile segments and
  intersection created from the CTN.
---

# 3. Publishing CTN as Vector Tiles to AGOL

The steps below assume you are working out of the project at the path below:\
G:\ATD\ATD\_GIS\CTN\CTN\_VectorTiles

This project contains two seperate maps: One for updating segments and the other for updating intersection points.

**\*THIS PROCESS SHOULD ONLY BE COMPLETED AFTER UPDATES HAVE BEEN MADE TO THE CTN SEGMENTS AND INTERSECTION LAYERS IN MAINT**

{% tabs %}
{% tab title="Segments - Vector Tiles" %}
**Verify correct layer configuration**

* Make sure appropriate fields are highlighted in the attribute table (these will be the fields included in the vector tile popups).
  * Currently (subject to change): OBJECTID, Project\_Extent\_ID, FULL\_STREET\_NAME, FROM\_ADDRESS\_MIN, TO\_ADDRESS\_MAX, LINE\_TYPE, GLOBALID

**Create Vector Tile Package**

* Use "Create Vector Tile Package" geoprocessing tool with parameters matching below:
* ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2Fnk7w7t6l6O4AtiZRsQ74%2Fimage.png?alt=media\&token=d19109bd-1eaf-46d0-ad2f-04dffcb26f37)
* Add current date at the end of the output file name for update tracking

**Share Vector Tile Package to AGOL**

* Use "Share Package" geoprocessing tool with parameters matching below:
* ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2FoYWL0pnjhn2MPd8R7o0d%2Fimage.png?alt=media\&token=74696a3f-66ed-4730-af33-b130a538d848)
* This will add both the vector tile package and a vector tile layer to AGOL\
  ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2F1H4uWKjsJEiftF0rym1X%2Fimage.png?alt=media\&token=68201056-1f97-498a-b2ba-cfe70e75beac)

**Verify published vector tile layer data**

* Add the new vector tile layer and the existing "CTN\_Segments\_Moped" to ArcPro project.
* ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2Fh1ExIajtGfjrHn5z5znu%2Fimage.png?alt=media\&token=b4314338-7859-4465-9a05-1d723b8725b8)
* Toggle layers on and off to verify new features have been capture. If updates have been captured and configuration looks correct proceed to final step.

**Replace existing data with updated vector tiles**

* Within ArcPro use the "Replace Web Layer" geoprocessing tool with parameters matching below:
* ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2FJBYM8cgP35VuPHFHC6Ki%2Fimage.png?alt=media\&token=26d63510-fc46-445e-988a-ff9f441bdd3a)
* The output of this tool will appear as below in AGOL:
* ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2FAUI3Cj02tdPNBONN14Bf%2Fimage.png?alt=media\&token=12cac679-c245-47ff-984a-a0717b7393fe)
* Three things happen when this tool in ran:
  * The new vector tile layer will replace the existing data in the "CTN\_Segments\_Moped" tile layer.
  * The tile layer for the new vector tile data will be deleted since it has now replaced the "CTN\_Segments\_Moped" tile layer. The tile package will remain and can be deleted at this point.
  * The existing data that was held in the "_CTN\_Segments\_Moped" tile layer will be archived in a tile layer called "_&#x43;TN\_Segments\_Moped\_archive\_%date of processing%"

**Delete any non necessary files from AGOL**

* All archive data two months or older and the vector tile package from the new data can be deleted from AGOL
{% endtab %}

{% tab title="Segments - Feature Service" %}
**Verify correct layer configuration**

* Make sure appropriate fields are displayed in the attribute table (these will be the fields included in the published feature service).
  * Currently (subject to change): Project\_Extent\_ID, FULL\_STREET\_NAME, FROM\_ADDRESS\_MIN, TO\_ADDRESS\_MAX, LINE\_TYPE

**Create Updated Export of CTN**

* Make sure all selections are cleared and verify the only query in place matches below:
  * LINE\_TYPE IS NOT NULL
*   Export parameters should match below:

    * ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2FnO9Zl7wCvnrW32rRq46L%2Fimage.png?alt=media\&token=c1984d35-2662-49c0-9dca-b144e09f96d6)



**Overwrite the Existing AGOL Feature Service**

* After verifying everything the export feature class looks correct, right click the the layer in the table of contents go to Sharing -> Overwrite Web Layer.
* In Overwrite Web Layer window, map to the AGOL Feature shown below and click OK
  * ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2FeMdaTR5xCsaPK0F7ugP1%2Fimage.png?alt=media\&token=c10a0289-9ee7-413b-b8fa-9ca0e92567ad)
*   This will open AGOL web layer parameters in the right panel which should appear as below. Reveiw and click Publish.

    * ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2FJ9aEZ0qPYx6pOPj2djD9%2Fimage.png?alt=media\&token=ef09b701-2387-4e38-978b-6f983df1ff2c)


* Once Publishing in completed, open layer in AGOL to verify the service has been updated
  * ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2FSh45BVt2NUSFUHIqj5NT%2Fimage.png?alt=media\&token=21b6631f-0486-49eb-a67b-8db3dc707bc5)
{% endtab %}

{% tab title="Intersections - Vector Tiles" %}
**Verify correct layer configuration**

* Make sure appropriate fields are highlighted in the attribute table (these will be the fields included in the vector tile popups).
  * Currently (subject to change): OBJECTID, IntersectionID

**Create Vector Tile Package**

* Use "Create Vector Tile Package" geoprocessing tool with parameters matching below:
* ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2FMj7kD3d1GeaYBIh329bs%2Fimage.png?alt=media\&token=3f3afe10-360b-4d4c-ac63-30870a6c21d0)
* Add current date at the end of the output file name for update tracking

**Share Vector Tile Package to AGOL**

* Use "Share Package" geoprocessing tool with parameters matching below:
* ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2FeezKVHDUlVfVlIyenD2R%2Fimage.png?alt=media\&token=799128d9-9f1e-4eaf-9d47-db5787a70bc2)
* This will add both the vector tile package and a vector tile layer to AGOL

**Verify published vector tile layer data**

* Add the new vector tile layer and the existing "CTN\_Intersections\_Moped" to ArcPro project.
* Toggle layers on and off to verify new features have been capture. If updates have been captured and configuration looks correct proceed to final step.

**Replace existing data with updated vector tiles**

* Within ArcPro use the "Replace Web Layer" geoprocessing tool with parameters matching below:
* ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2FiCQnPPKiVbNLagjuU861%2Fimage.png?alt=media\&token=6d82f1af-91af-48ab-b57f-46c089aede8b)
* The output of this tool will appear as below in AGOL:
* ![](https://2080616366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3vG5OVht6_BV2LYSXk%2Fuploads%2Fu4M6afzYl4wsOqPrdslc%2Fimage.png?alt=media\&token=b2c53429-77b2-4c4a-a1f9-04022987c3cc)
* Three things happen when this tool in ran:
  * The new vector tile layer will replace the existing data in the "CTN\_Intersections\_Moped" tile layer.
  * The tile layer for the new vector tile data will be deleted since it has now replaced the "CTN\_Intersections\_Moped" tile layer. The tile package will remain and can be deleted at this point.
  * The existing data that was held in the "CTN\_Intersections\_Mope&#x64;_" tile layer will be archived in a tile layer called "_&#x43;TN\_Intersections\_Moped\_archive\_%date of processing%"

**Delete any non necessary files from AGOL**

* All archive data two months or older and the vector tile package from the new data can be deleted from AGOL
{% endtab %}
{% endtabs %}





