Select to view content in your preferred language

Switching multiple basemaps at given extent

2265
4
08-11-2010 12:27 PM
AlisonSengupta
Occasional Contributor
I am trying to switch basemaps at a certain scale and have been halfway successful.  I used some code from Robert Sheitlin, but I need it slightly altered.  I want my street map to come up after a certain scale if the ESRI streets are on and my imagery to come up at the same scale if the ESRI satellite imagery is on.  I also have a toggle bar for the streets, imagery, and a blend feature that may need to be tied into this.
Thanks,
Alison
Tags (2)
0 Kudos
4 Replies
BjornSvensson
Esri Regular Contributor
Hi Alison,

Are you using the 1.x API, the 2.0 API, the Sample Flex Viewer 1.x or the ArcGIS Viewer for Flex 2.0 beta?
0 Kudos
CattyannCampbell
Frequent Contributor
Hi Alison,

Are you using the 1.x API, the 2.0 API, the Sample Flex Viewer 1.x or the ArcGIS Viewer for Flex 2.0 beta?


Can you do this with Flex 2.0 beta without coding?
0 Kudos
BjornSvensson
Esri Regular Contributor
No, the ArcGIS Viewer for Flex does not allow you configure it so that it switches basemaps based on extent.
0 Kudos
AlisonSengupta
Occasional Contributor
I was able to solve my problem.  I am using a customized version of the Sample Flex Viewer.  I had to add some scale dependency settings (many if and else if statements) for each case that I had for my toggle bar.  The same scale dependency settings are in my MapManager file as well.  I was able to get everything working.  I haven't worked with the new Flex Viewer so I don't know if my code will translate correctly.
Thanks,
Alison
0 Kudos