I use a custom tiled basemap and an ESRI basemaps in my app. I would like users to view the ESRI basemap on all scales but since I don't have all scales covered with my custom basemap, switching to this would show only a blank screen.
Would it be possible to set different visible scales (lods) for these basemaps?
Solved! Go to Solution.
Mihkel,
The way I am using the LocalLayer widget to add "ESRI Streets" as a tiled layer and set the displaylevels where it shuts off after the defined display levels have been exceeded and then I have my aerial photographic layer added as a tiled layer which has min scale range set on the map service so that it shows after the esri streets shuts off, means that I have not need to use a basemap gallery widget. This is one way you can achieve what you are asking about.
Mihkel,
How are you adding the two basemaps? Is the esri one part of the WebMap that you are using or is your custom basemap part of the WebMap? Either way there is no way in the UI to set the display levels for the basemaps and this will have to be done by modifying code in the WAB stemApp
Hi Robert! Thanks for the response.
Currently, my custom basemap is part of the AGOL web map and the ESRI basemap is selectable from the Basemap Gallery widget. Could you point me in the right direction with where to start with this customization?
Mihkel,
I do this in my WAB app using the LocalLayer widget and setting the display levels for esri streets basemap (the only esri basemap I use). If you have a desire to still use the basemap switcher and be able to use other esri basmaps then I will have to dig into how to do this. So let me know if using one esri basemap will work for you or not.
Robert,
Thanks. I will have a look at the LocalLayer widget and see if this works for me. I'll get back to you on that.
Robert,
I could use the LocalLayer widget in my app, although it seems that I would lose some customizations I have made on the AGOL web map. And just to be clear, does using this widget mean that I would not be able to use the Basemap Gallery? Thanks.
Mihkel,
The way I am using the LocalLayer widget to add "ESRI Streets" as a tiled layer and set the displaylevels where it shuts off after the defined display levels have been exceeded and then I have my aerial photographic layer added as a tiled layer which has min scale range set on the map service so that it shows after the esri streets shuts off, means that I have not need to use a basemap gallery widget. This is one way you can achieve what you are asking about.
Thanks, Robert. I think i get the picture now.