Custom maps e.g. Esri etc. using geobasemap and addCustomBasemap
조회 수: 3 (최근 30일)
이전 댓글 표시
I am interested in the geobasemap function, however it would be great to be able to test all the maps that are out there using the addCustomBasemap or whatever other method is necessary…
There is a good list of maps here:
For instance, I am interested in how I can bring in the CartoDB, Jawg, or even additional ESRI maps within the Matlab Mapping Toolbox.
Thanks for your help
댓글 수: 0
답변 (1개)
Varun
2023년 8월 30일
편집: Varun
2023년 9월 12일
Hello!
I understand that you wish to import custom basemaps to MATLAB Mapping Toolbox. Support for vector basemaps hosted by ESRI has been added to the “addCustomBasemap” function in R2023a.
Vector basemaps can be added to MATLAB like this:
basemapName1 = "worldstreetstyle";
url = "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/tile/${z}/${x}/${y}.pbf";
style = "https://www.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json?f=pjson";
addCustomBasemap(basemapName1,url,Style=style)
lat = [42.3501];
lon = [-71.0870];
gb = geobubble(lat,lon,"Basemap",basemapName1);
You may refer to the following documentation to learn more about addCustomBasemap: https://www.mathworks.com/help/map/ref/addcustombasemap.html#mw_2f5f761b-f766-4575-8754-b08999c3192e
Please note that importing ESRI basemaps is a relatively new feature, having just been introduced in R2023a.
Hope this helps!
Thanks,
Varun
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!