Select to view content in your preferred language

Replace local map service by webmap id

698
2
09-25-2013 05:05 AM
JoseSanchez
Frequent Contributor
Hi all

I created a webmap in ArcGIs onlne, how can I modify my code to show the map online using the web map id?

This is a sample of the existing code:

function init() {
        var map = new esri.Map("map");
        var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer");
        map.addLayer(tiledMapServiceLayer);
      
0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor
Have you seen the samples that use ArcGIS.com web maps?
0 Kudos
JoseSanchez
Frequent Contributor
Yes I saw all of them, I am currently working with them.
0 Kudos