jsn

Replace local map service by webmap id

Discussion created by jsn on Sep 25, 2013
Latest reply on Oct 3, 2013 by jsn
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);
      

Outcomes