With the Map Viewer you can easily update and save the metadata for your layers. Saving layers updates and stores the styling and extent information with the layer itself. If you own the layer, you can save directly to the layer. If you don't, you can copy other people's layers and save the layer with your own style and extent information. This technique is handy when you want to render a layer the same way in all apps/APIs that access the layer.
In this lab you will style and save a layer to your account.
-
Go to arcgis.com and login.
-
Click
MAP
. -
Click
Add
>Search for Layers
>In: ArcGIS Online
. -
Search for
PDX Neighborhoods Enriched
by (al_geodev) and add this layer. -
Click
PDX Neighborhoods Enriched
>Copy
. This creates a new Layer in your map namedPDX Neighborhoods Enriched - Copy
. -
Change the extent of the map and style the layer as desired. See Style a Map for help on styling.
-
Click
PDX Neighborhoods Enriched - Copy
>Save layer
. This will save a new Layer Item in your account. Set the following properties:
* Title: PDX Neighborhoods Enriched Copy
* Tags: PDX Neighborhoods
* Summary: PDX Neighborhoods Copy
* Save In Folder: <your account>
Done
- Go to
My Contents
to view the layer with the symbology.
Your map should look something like this map.
- View the JSON for the layer by using the REST API to access the item in your account. In your web browser, paste in this url. Identify the
renderer
section.
https://www.arcgis.com/sharing/rest/content/items/d07ec497291b470f9038d3759838f51f/data
NOTE: Replace the item ID above with yours.
If you would like to format the response, try this JSON Editor tool.