AnsweredAssumed Answered

Add a basemap layer

Question asked by brandon.price on Nov 17, 2017
Latest reply on Dec 20, 2017 by brandon.price

I would like to add a basemap layer to a custom web app made with arcgis api javascript framework syntax. I am using ArcGIS API 3.22 to call an arcgis online web map that has no basemap. I would like to set it using arcgis api for js. Can you add a baselayer with a map that has already been created? I cannot use something like:

var map = new esri.Map("mapDiv", {
        center
: [-56.049, 38.485],
        zoom
: 3,
        basemap
: "streets"
     
});

because the map has been created.

 

Thanks,

Brandon

 

Story Maps

Web AppBuilder Custom Widgets

Outcomes