Select to view content in your preferred language

Setting Extents for ESRI map service

1639
7
09-16-2010 07:16 AM
JoshuaCoates
Deactivated User
I am trying to use the ESRI world streets service as my basemap service. I have the initial extent set up to display my county. Now, what I am trying to find out is if it is possible to set some type of maximum scale so that once the user zooms in to a certain point....the ESRI map service turns off and I can set a minimum scale for my basemap so that it turns on at that same point?! How do I go about setting this up?

Thanks,
Josh C.
Tags (2)
0 Kudos
7 Replies
DasaPaddock
Esri Regular Contributor
0 Kudos
JoshuaCoates
Deactivated User
I see the code for this, however, I am using 2.0 beta version of FlexViewer. Is the code this the same? And do i just modify the config.xml....or do I need to alter other code within another file?
0 Kudos
JoshuaCoates
Deactivated User
Can someone explain where to put the code? Im guessing the private function goes in MapManager.mxml. Where do I specify what I want the maximum or minimum to be for each layer? In the config.xml where I have the basemap?
0 Kudos
DasaPaddock
Esri Regular Contributor
You don't need the addLODs() unless you want to have more levels then are already available in your base layer.

Currently the config doesn't support setting min or max scale for the levels. You could update ConfigManager to read these values and then MapManager to make use of them.
0 Kudos
JoshuaCoates
Deactivated User
Is this something that can be done by an extreme newbie? Or does it take a good deal of coding knowledge? If it is something that I could be walked through I would really appreciate the help. If not and it would take too long I understand. Let me know what you think?!

Thanks for your help!

Josh C.
0 Kudos
DasaPaddock
Esri Regular Contributor
Can you try following the example of the existing code? If not, then maybe just hard-code it in MapManager.
0 Kudos
JoshuaCoates
Deactivated User
I dont even know how or where to begin. I literally have zero coding background. I guess it just wont be possible for me. Today is my last day at this internship and I just simply wont have time to try and learn this on my own. If it was just a matter and plugging certain code in somewhere and I knew what to do it might be easier. Thank you for your help though, it is much appreciated!!


Josh C.
0 Kudos