Custom Geobasemap with ESRI map

18 views (last 30 days)
Mia Hoffman
Mia Hoffman on 7 Jan 2022
Answered: Kojiro Saito on 11 Jan 2022
I am trying to add the Light Gray Canvas Base basemap from ESRI as a custom basemap using addCustomBasemap(). However, it is not accepting the URL from ESRI:
Here is a link to the actual basemap's documentation on ESRI: I understand that the map needs to be a tile server.
It is accepting an older URL to a similar map: '{z}/{y}/{x}.jpg'
Any help would be appreciated.
Code looks like this:
url = '{z}/{y}/{x}.jpg'; % URL of basemap
%%Specify a name for the basemap and attribution text to display with it.
name = 'lightgray'; % set variable name for basemap
att = 'Credit: Esri Basemaps'; % Set attribution for map
%% Finally, add the USGS Topo basemap.
addCustomBasemap(name,url,'Attribution',att); % create custom basemap

Answers (1)

Kojiro Saito
Kojiro Saito on 11 Jan 2022
The URL might be
url = '${z}/${y}/${x}.pbf';
but as of R2021b, addCustomBasemap allows only raster tile maps.
The Vector Tile Server provided by ESRI is a vector tile map (.pbf format) and it's not supported.
I've informed developers of this question.




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!