Select to view content in your preferred language

How can I make basemapToggle show a basemap intial at startup?

707
1
04-07-2017 04:36 AM
ChristinaIllingworth
Deactivated User

I've created a basic HTML file that shows a simple webmap from ArcGIS Online. I have made the basemap on my ArcGIS Online webmap 100% transparent because otherwise the basemaptoggle widget is "below" the entire map. Is there any way I can now set this up to have a basemap showing at startup through the basemapToggle widget? Or am I overthinking this and there is a much better approach to the whole thing entirely? I'm fairly new to javascript and especially javascript for arcgis.

Thanks in advance!

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Christina,

   If you are saying that the basemap toggle widget is under the map then it sounds like you do not have the div in the right spot in your code. Have you seen the basemap toggle sample?

Basemap Toggle | ArcGIS API for JavaScript 3.20 

0 Kudos