Hi,
I'm looking to be pointed in the right direction. I'm working on a "Save Session" widget where I need to change the basemap in the webmap to whatever was saved previously.
In short, I need to first remove existing basemaps and then from my session info, update to new basemaps.
I'm not seeing (or just looking in the wrong place) the methods to work directly with basemaps in the webmap. I have found methods that allow me to get current basemaps, just nothing to add/remove them.
First, removal of basemaps using the following doesn't work, I receive "cannot read property id of undefined