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.
- If necessary, download and install the latest version of 7-Zip version.
- If necessary, download and install the latest version ofNotepad++32-bit or 64-bit.
- Open Notepad++.
If you are prompted to download an update package, choose not to.
- On the ribbon, click Plugins and choose Plugins Admin.
The Plugin Admin window opens.
- Search for JSTool and check the box. Click Install.
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.
- Download the earthquakes-2017.zip file.
- 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.
- Start ArcGIS Pro. If prompted, sign in using your licensed ArcGIS account.
If you don't have ArcGIS Pro or an ArcGIS account, you can sign up for an ArcGIS free trial.
- Under New, click Map.
- 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.
- On the ribbon, click the Analysis tab. In the Geoprocessing group, click Tools.
The Geoprocessing pane opens.
- In the search box, type XY Table to Point and press Enter.
- In the list of results, click XY Table to Point.
The tool's parameters open.
- For Input Table, click the Browse button. Browse to and choose earthquakes_2017.csv.
- 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.
Before you create a vector tile package from the data, you'll provide basic metadata about the map.
- In the Contents pane, right click Map and choose Properties.
- In the Map Properties window, click Metadata.
- 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.
- 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.
- In the Contents pane, right-click Map and choose Properties.
- In the Map Properties window, click Coordinate Systems.
- In the search box, type Web Mercator and press Enter.
- In the search results, expand Projected coordinate system and World. Choose WGC 1984 Web Mercator (auxiliary sphere).
- 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.
- In the Contents pane, select earthquakes_2017.
Selecting a layer in the Contents pane displays Feature Layer tabs in the ribbon.
- 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.
- For the mag field, check the box in the Highlight column.
Highlighting the mag field will ensure it remains in the output vector tile package you create.
- On the ribbon, in the Changes group, click Save.
- 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.
- In the Contents pane, uncheck all layers except earthquakes_2017.
- In the Geoprocessing pane search box, type Create Vector Tile Package and press Enter.
- In the search results, click Create Vector Tile Package.
- For Input Map, choose Map. For the Output File name, type earthquakes_2017.
- Click Run.
A vector tile package (.vtpk) is created in your default project folder.
- In the Contents pane, uncheck earthquakes_2017 to turn it off.
- On the ribbon, click the Map tab. In the Layer group, click Add Data.
- 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.
- On the Quick Access Toolbar, click the Save button.
- 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.