Select to view content in your preferred language

Zoom to user defined scale.

1054
3
08-17-2011 10:54 AM
UnivOmaha
Emerging Contributor
I am using ArcGIS API for flex 2.4 with ArcGIS server 10. I am trying to write the widget where user can define the map scale (type it in text box) and it will zoom to that scale. I successfully created a widget. But When I type scale in the text box it still zooms to the nearest LOD scale level. e.g. if i zoom to 5000 scale, it will take it as 4,514.

Could anyone suggest what change I need to make? Is there anything that needs to be defined in MapManager?
Tags (2)
0 Kudos
3 Replies
UnivOmaha
Emerging Contributor
Thank you so much Robert for your suggestion. I tried to change basemap layer to DYNAMIC from TILED. Now I can zoom in to any level I want But now resoultion of map has degraded. it looks quite coarse as dynamic service.
How do I improve the resolution?
I am using easri streetmap as base map layer and changing it to DYNAMIC? Do I need to publish my own service to tune the display resolution?
Also zoomslider from navigation is disabled when I change it to DYNAMIC.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Univ Omaha,

   Sure you can get better quality by setting the imageformat="jpg" in the layer element. So it would look like this:

<layer label="Streets" type="dynamic" imageformat="jpg" visible="true"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>


Also zoomslider from navigation is disabled when I change it to DYNAMIC

This is the default behavior, now that the layer is dynamic and is not constrained to certain LODs there is no need for a slider.
0 Kudos
UnivOmaha
Emerging Contributor
Thanks again Robert. Worked like a magic.
Meanwhile I also tried to publish own basemap with ESRI streetMap data to set my own LODs. I am glad I am learning a lot.
0 Kudos