Select to view content in your preferred language

change the basemap of a to another Web Map item?

06-23-2017 01:45 AM
Occasional Contributor III

And another question:

Assume I create a map from scratch using'MyMap')
I can add layers and do many things - I can call the basemaps that are coming with it, just by a short string ('dark-gray','topo','gray','hybrid') ... but what if I want to change the basemap to another item like this great one:

gis.content.get('25b5b923fbbb49cf9a39150d3a3150d5') - I have the item, but the only accepts short string idetifiers for (included) basemaps. Not possible?

Optional: Is there a syntax to use gis.Map('MyMap') in a way that just CLONES an existing Item/Map ?


Tags (2)
1 Reply
Occasional Contributor

I have attached a notebook in the zip file.

I was able to switch the basemap of a portal webmap to a basemap from another portal web map with the notebook.  Hopefully this will help.  Let me know if you have questions.  Thanks.


0 Kudos