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
Solved! Go to Solution.
If you are happy with that then go with it.
Sounds great