Making zoom to exactly desired scale in Flex?

2829
1
03-20-2014 07:33 AM
EzequiasRodrigues_da_Rocha
New Contributor III
[ATTACH=CONFIG]32357[/ATTACH]I am customizing a widget to set the scale of my map dynamically (via inputbox). I am having trouble becouse the scale defined is  not the reflected on the map.

I am using tiled maps as <layer type="dynamic" from my server and from arcgis basemaps.

The navigator is not displaying LODs (as you can see) wich I prefer for being much more free to navigate to specific envelopes.

Have you have any idea why this is ocurring?
[ATTACH=CONFIG]32356[/ATTACH]

Regards
Ezequias
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: RayCrew

[ATTACH=CONFIG]32357[/ATTACH]I am customizing a widget to set the scale of my map dynamically (via inputbox). I am having trouble becouse the scale defined is  not the reflected on the map.

I am using tiled maps as <layer type="dynamic" from my server and from arcgis basemaps.

The navigator is not displaying LODs (as you can see) wich I prefer for being much more free to navigate to specific envelopes.

Have you have any idea why this is ocurring?
[ATTACH=CONFIG]32356[/ATTACH]

Regards
Ezequias


There may be a few different things causing this. Check these:
1. Make sure to have zoomslidervisable set to false.  zoomslidervisible="false"  after the <map and before </map>
2. Are the LODs in the right place? That have to be after <map and before </map> and inside <lods> and </lods>
3. The LODs should be formatted like this:

  <lods>
   <lod resolution="33866.7344" scale="128000000"/>
   <lod resolution="16933.3672" scale="64000000"/>
   <lod resolution="8466.6836" scale="32000000"/>
   <lod resolution="4233.3418" scale="16000000"/>
   <lod resolution="2645.8386" scale="10000000"/>
   <lod resolution="2116.6709" scale="8000000"/>
   <lod resolution="1587.5032" scale="6000000"/>
   <lod resolution="793.7515875" scale="3000000"/>
   <lod resolution="264.583863" scale="1000000"/>
   <lod resolution="132.291931" scale="500000"/>
  </lods>
4. And make sure you are loading the Navigation Widget as a User Interface Widget element and make sure you have the <slidervisable>true</slidervisable> set in your navigationwidget.xml config file.
0 Kudos