Select to view content in your preferred language

switch  basemap automatically

1159
3
Jump to solution
03-19-2012 04:56 AM
philippschnetzer
Frequent Contributor
I remember seeing something similar in a previous thread but cannot seem to find it anymore....

I have two basemaps and would like the map to switch to "basemap1" when zoomed in beyond a certain scale (1:18,000).  "Basemap2" is the Esri aerial imagery and there is very poor coverage in my area so that's why a switch to my custom "basemap1" would be ideal.

Thank you!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Philipp,

   Yep the eMapSwitcherWidget allow for this to be setup. You need to Read the ReadMe.txt to see how to configure this. There is a config-fader.xml example of what need to be added to the MAIN config.xml for your viewer.


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote) as shown below:

View solution in original post

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Philipp,

   Yep the eMapSwitcherWidget allow for this to be setup. You need to Read the ReadMe.txt to see how to configure this. There is a config-fader.xml example of what need to be added to the MAIN config.xml for your viewer.


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote) as shown below:
0 Kudos
ChristopherOlsen
Frequent Contributor
To do this, all you need to do is set the displaylevels for each of the basemaps in the <layer> tag.  Keep in mind this only works with tiled and Bing layers.  If you set the basemaps as the same name, they will show as one in the viewer.  Then when you zoom in, depending on the level, you will see the particular service.
http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Layer_tag/01m30000000p000000/
0 Kudos
philippschnetzer
Frequent Contributor
Robert,

I should have known you already had a perfect solution in place 🙂

Works beautifully!

Thanks

Chris - Thanks for your insight as well, for anyone not using Roberts eMapSwitcher your solution would do the job.
0 Kudos