Esri has introduced a new set of vector basemaps (now in beta release). There are several benefits to vector basemaps including high-res displays, smaller and easier to update and the ability to customize the look and feel of the basemaps.
In this lab you will customize a vector basemap from an existing tile layer and then publish the updated style as a new tile layer.
Go to arcgis.com and login. Click Map
.
Click Add
to add a vector tile > Search for Layers
> In: ArcGIS Online
.
Search for:
owner:esri_vector gray -mature
Click Add
to add the Light Gray Canvas
layer to the map > click Done Adding Layers
.
In the table of contents, click the new layer’s hamburger menu •••
and select Copy
.
For the layer just copied, click •••
> Save Layer
> change the Title to Light Green Canvas
and click CREATE ITEM
.
Click My Content
> click the Light Green Canvas
tile layer > Download style
.
Open the root.json
style you downloaded in a text editor. The root.json
file controls the map style.
In the steps below you’re going to change the color for a couple of layers in the map.
#cfcfd4
and replace with #a6deff
. This approach is recommended because these layers appear multiple times in the map style for different zoom levels. "type": "background",
"paint": {
"background-color": "#a6deff"
"source-layer": "Water area",
"paint": {
"fill-outline-color": "#a6deff",
"fill-color": "#a6deff"
fill-color
from #ededed
to #dfffd9
. "source-layer": "Land",
"paint": {
"fill-color": "#dfffd9"
fill-color
from #e8e8e8
to #d5e3ca
. "source-layer": "Urban area",
"maxzoom": 12,
"paint": {
"fill-color": "#d5e3ca"
fill-color
from #e4e8e4
to #9cb297
. "source-layer": "Admin0 forest or park",
"paint": {
"fill-color": "#9cb297"
"source-layer": "Admin1 forest or park",
"paint": {
"fill-color": "#9cb297"
fill-color
from #e4e8e4
to #929991
and Save
the file. "source-layer": "Park or farming",
"paint": {
"fill-color": "#929991"
Go to arcgis.com and login if necessary. Click My Content
> click the Light Green Canvas
tile layer > click Update
> Choose File
> select the root.json
file > Update Style File
.
To see the changes, click Open in Map Viewer
.
Your map should look like this:
Light Green Canvas
map you just created. Try using the colors of your organization, or maybe the colors of your favorite team!