BaseMap TileLayer

879
4
09-26-2023 06:56 PM
Labels (1)
saravana-sk
New Contributor II

Hello, we need to render topographic world map in a web app. we used the esri BaseMapLayer earlier. I am seeing it got deprecated now.

Is it good to use the Leaflet's tileLayer with URL referred as below.

L.tileLayer('https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}',
{}).addTo(map); 

0 Kudos
4 Replies
GavinRehkemper
Esri Contributor

Hi, the best way to show a topographic basemap would be to use the Esri Leaflet Vector plugin.

Here is a tutorial you can follow: https://developers.arcgis.com/esri-leaflet/maps/display-a-map/

Here is sample code you can use: https://developers.arcgis.com/esri-leaflet/samples/showing-a-basemap

Then you can use "arcgis/topographic" as the basemap enum. See this sample for an example of all the different basemap styles: https://developers.arcgis.com/esri-leaflet/maps/change-the-basemap-style-v2/

 

0 Kudos
saravana-sk
New Contributor II

Hi GavinRehkemper, Thanks for the info. I have already gone through the documentation that you shared where I could see, we need an API Key to render the World Topo Map in Vector plugin.

To get the API key we need an ArcGIS Developer (for individual developers) or ArcGIS Online account (for organizations). I am bit confused on looking at the various products under ArcGIS online.

Could you help me to find the right product and subscription for just rendering the World Topo Map. We don't need any other rich capabilities.

Thanks in Advance.

 

 

0 Kudos
GavinRehkemper
Esri Contributor

Hi, you can sign up for a free developer account here: https://developers.arcgis.com/sign-up/

You can see more about pricing here: https://developers.arcgis.com/pricing/ (Access to the vector tiles that you're using here falls under the "Basemap Layers" (2,000,000 tiles free) section of this page)

You can also contact Esri (https://www.esri.com/en-us/contact#c=us&t=1) if you need more help selecting a plan.

0 Kudos
saravana-sk
New Contributor II

Thanks GavinRehkemper. I will try connecting to Esri Sales team.

May I know about the timeline, when does the old service (https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/) would be retired permanently. I know the BaseMapLayer is already deprecated, just want to know the timeline on complete retire. 

 

0 Kudos