You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting the defaultBasemap option to something other than the basemap that the underlying web map uses, the app will first show the web maps basemap. When the user then does a basemap toggle, it will show the basemap set as the toggle option. On the next toggle, the app will then show the basemap specified as defaultBasemap.
Or to be more clear:
Create a new Web Map in ArcGIS Portal or AGOL
Use Streets as the basemap
Share as Public Information app
Configure public information app to use the Topographic map as Default Basemap
And the National Geographic map as next Basemap.
When the app loads, it will display the Streets basemap
First click on Toggle will display the National Geographic basemap
Next click on Toggle will display the Topographic basemap.
I believe the end user expects the Basemap Toggle to always toggle between the same two maps.
So either show the basemap set as Default Basemap when the application loads, irregardless of which basemap was used in the web map, or toggle between the "Next basemap" and the basemap that was used on the web map.
It seems like the BasemapToggle dijit code actually should fetch the map's current basemap when toggling, and put that as previous basemap (and default basemap), but for some reasons, it works the way described above.
The text was updated successfully, but these errors were encountered:
Yes this is a known limitation in 3x. The BasemapToggle only recognizes string named basemaps. Basemaps that are set by a webmap or basemap gallery are not recognized.
When setting the defaultBasemap option to something other than the basemap that the underlying web map uses, the app will first show the web maps basemap. When the user then does a basemap toggle, it will show the basemap set as the toggle option. On the next toggle, the app will then show the basemap specified as defaultBasemap.
Or to be more clear:
I believe the end user expects the Basemap Toggle to always toggle between the same two maps.
So either show the basemap set as Default Basemap when the application loads, irregardless of which basemap was used in the web map, or toggle between the "Next basemap" and the basemap that was used on the web map.
It seems like the BasemapToggle dijit code actually should fetch the map's current basemap when toggling, and put that as previous basemap (and default basemap), but for some reasons, it works the way described above.
The text was updated successfully, but these errors were encountered: