Skip To Content

Create a vector tile package

First, you'll make sure you have all the needed software to complete the lessons. Then, you'll create a vector tile package containing earthquake data. After that, you'll add the earthquake data to a map in ArcGIS Pro and prepare the map for vector tile creation. Finally, you'll create the vector tile package.

Install required software

During these lessons, you'll complete steps outside of ArcGIS Pro using the free software 7-Zip and Notepad++. You'll also use the JSTool plug-in for Notepad++. 7-Zip is a tool for archiving files. Notepad++ is simple text editor, while the JSTool plug-in formats JSON code in a way that is easier to read and edit.

  1. If necessary, download and install the latest version of 7-Zip version.
  2. If necessary, download and install the latest version ofNotepad++32-bit or 64-bit.
  3. Open Notepad++.
    Note:

    If you are prompted to download an update package, choose not to.

  4. On the ribbon, click Plugins and choose Plugins Admin.

    The Plugin Admin window opens.

  5. Search for JSTool and check the box. Click Install.
    Note:

    If you are prompted to update the Plugin Admin, choose not to.

    After the plugin is installed, Notepad++ will restart.

Add earthquakes to a map

The United States Geological Survey (USGS) provides earthquake data for download in a variety of formats. You'll download a comma-separated value (CSV) table of every earthquake that occurred in 2017 with a magnitude of 2.5 or above. This CSV file was created based on USGS data. You'll then add the CSV file to ArcGIS Pro as a feature layer.

  1. Download the earthquakes-2017.zip file.
  2. Locate the downloaded file on your computer. Right-click the file and extract it to a location where you can easily find it, such as your Documents folder.
  3. Start ArcGIS Pro. If prompted, sign in using your licensed ArcGIS account.
    Note:

    If you don't have ArcGIS Pro or an ArcGIS account, you can sign up for an ArcGIS free trial.

  4. Under New, click Map.
  5. In the Create a New Project window, for Name, type Earthquakes of 2017. Specify a location to save the project, then click OK.

    The project is created and opens displaying a new map.

  6. On the ribbon, click the Analysis tab. In the Geoprocessing group, click Tools.

    The Geoprocessing pane opens.

  7. In the search box, type XY Table to Point and press Enter.
  8. In the list of results, click XY Table to Point.

    The tool's parameters open.

  9. For Input Table, click the Browse button. Browse to and choose earthquakes_2017.csv.
  10. For Output Feature Class, change the output name to earthquakes_2017. Leave the other parameters unchanged and click Run.

    A new point layer named earthquakes_2017 is added to the map. It shows the locations of earthquakes in 2017. The default symbology is random and may look different than the example images.

    Default point symbols]

Add metadata

Before you create a vector tile package from the data, you'll provide basic metadata about the map.

  1. In the Contents pane, right click Map and choose Properties.
  2. In the Map Properties window, click Metadata.
  3. In Metadata, change the following parameters:
    • For Title, type Earthquakes_of_2017.
    • For Tags, type earthquakes and vector tiles.
    • For Summary, type Earthquakes that occurred in 2017.
    • For Description, type This map shows all earthquakes in 2017 with a magnitude of 2.5 or higher.

    Completed metadata

  4. Click OK.

    The map's metadata is now properly configured.

Set the projection

Next, you'll change the map's projection to WGS 1984 Web Mercator Auxiliary Sphere, the default projection system used by ArcGIS Online. Because you intend to publish your layer, using this projection system is important.

  1. In the Contents pane, right-click Map and choose Properties.
  2. In the Map Properties window, click Coordinate Systems.
  3. In the search box, type Web Mercator and press Enter.
  4. In the search results, expand Projected coordinate system and World. Choose WGC 1984 Web Mercator (auxiliary sphere).
  5. Click OK.

    The map changes to the Web Mercator projection.

Highlight a field

To keep file size small, vector tile packages are saved by default without any feature attributes. In this case, however, you want the earthquake magnitude value to be included for each occurrence. You'll ensure the attribute field is saved with the data by highlighting it.

  1. In the Contents pane, select earthquakes_2017.

    Selecting a layer in the Contents pane displays Feature Layer tabs in the ribbon.

  2. On the ribbon, click the Data tab. In the Design group, click Fields.

    The Fields view opens for the selected layer. While the data contains several fields, you only want to include earthquake magnitude.

  3. For the mag field, check the box in the Highlight column.

    Highlight fields in the Fields view

    Highlighting the mag field will ensure it remains in the output vector tile package you create.

  4. On the ribbon, in the Changes group, click Save.
  5. Close the Fields view.

Create a vector tile package

Next, you'll run the Create Vector Tile Package tool to save a vector tile package of your earthquake map to a location on your computer.

  1. In the Contents pane, uncheck all layers except earthquakes_2017.
  2. In the Geoprocessing pane search box, type Create Vector Tile Package and press Enter.
  3. In the search results, click Create Vector Tile Package.
  4. For Input Map, choose Map. For the Output File name, type earthquakes_2017.
  5. Click Run.

    A vector tile package (.vtpk) is created in your default project folder.

  6. In the Contents pane, uncheck earthquakes_2017 to turn it off.
  7. On the ribbon, click the Map tab. In the Layer group, click Add Data.
  8. Browse to your default project folder, choose earthquakes_2017.vtpk, and click OK.

    The earthquakes_2017.vtpk file is added as a new layer to your map. The layer is identical to the earthquake points layer you used to create the vector tiles.

  9. On the Quick Access Toolbar, click the Save button.
  10. Close ArcGIS Pro.

In this lesson, you created a vector tile package from a map displaying earthquakes that occurred in 2017. For now, the points in the vector tiles are symbolized using the same default symbols assigned to the layer in the map. In the next lesson, you'll edit the vector tile style.