BasemapGallery - Clone basemap prior to setting to avoid "object already owned" error. #328
Labels
Effort - small
A low level of effort to complete
enhancement
New feature or request
Priority - medium
A medium-priority item
When the client passes in a list of base maps, and if multiple web maps are used with the BasemapGallery, you can get the "object already owned error". The solution is to clone the basemap prior to setting the new basemap.
Cloning is NOT necessary when the user passes in a portal, as the portal basemaps are reloaded every time the basemap gallery is displayed.
The text was updated successfully, but these errors were encountered: