I'm trying to upgrade my app from version 3.3 to version 3.7 of the ArcGIS JavaScript API and am switching out the basemap gallery for the new BasemapToggle widget.
I have two custom basemaps that I want to use in my app using BasemapToggle.
Is this possible?
The API homepage suggests it is but I haven't seen a sample or any documentation on how to do it properly.
Can anybody point me towards a solution or example of how to use my own basemaps with this widget?
I'm trying to do this with two basemaps, loading one of them as the initial basemap and then being able to toggle between them. My attempt at Derek's answer is HERE