AnsweredAssumed Answered

Use custom Basemap with BasemapToggle?

Question asked by jhine-esristaff Employee on Aug 25, 2015
Latest reply on Jun 7, 2016 by stevel

I'm trying to get the BasemapToggle widget to work with a custom Basemap. The widget needs one of the Map.basemap strings, so I'm feeding my custom Basemap to the Map, and then specifying a Map.basemap string in the widget. This kinda works, but the widget thumbnail and title don't change as expected. I get an Uncaught TypeError: Cannot read property 'thumbnailUrl' of undefined, even if I specify the widget's basemaps property. Could this be a bug?  Code is here: JS Bin - Collaborative JavaScript Debugging

Outcomes