Select to view content in your preferred language

Switching basemaps at given extent

842
2
04-28-2010 12:45 AM
Alexandervan_der_Schans
Emerging Contributor
Hi everybody,

I am using the Sample Flex Viewer and would like to be able to have the basemaps switch when a certain zoom level gets reached. I am using two dynamic basemaps with a different spatial reference (4326 is the first one and the second one is in 28992), and would like to know how I would go about doing this. And also I was wondering if its possible that when a certain zoom level is reached the appropriate live layer/map gets loaded automatically? I have seen some threads discussing these questions for tiled services but I'm not sure this will work the same way for my dynamic services.

thanks,

Alex
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Alex,
 
   This thread is probably the one you are talking about and yes you can just witch it to ArcGISDynamicMapServiceLayers.

http://forums.esri.com/Thread.asp?c=158&f=2421&t=295797&mc=12#msgid924110
0 Kudos
Alexandervan_der_Schans
Emerging Contributor
Thank you Robert, It's not working however and I'm getting an error:

1013: The private attribute may be used only on class property definition

on:      private function widgetShowInfo(event:AppEvent):void

which is quite weird cause I didnt change anything there.

I've changed all the statements as shown in that thread, but still nothing is happening.
I dont quite understand the logic behind adding the additional LODs, does it matter which level you assign them to (like the examples 16 and 17?) or can you just keep this default?

I've included my mapmanager.mxml so you can see what i'm missing..

thanks alot!
0 Kudos