Select to view content in your preferred language

Flex Viewer 2.1 - Increase maximum zoom?

3251
13
09-24-2010 06:44 AM
JackReed
Emerging Contributor
Hi,
I am using the already compiled flex viewer 2.1 and have dynamic operational layers on top of the default basemaps.  What I would like to do is to be able to zoom in closer than the default maximum zoom.  Is this possible?  I cannot find any documentation anywhere relating to this.

Thanks,
Jack
Tags (2)
0 Kudos
13 Replies
PaulLang
Deactivated User
I just followed the instructions within src.zip from above.

That worked, so I then removed:
  <extralod level="18" resolution="0.597164283559817" scale="2256.994353" />
  <extralod level="19" resolution="0.298582141647617" scale="1128.497176" />
Added this:

<extralod level="1" resolution="1.04166666666667" scale="1200"   id="oneZ"   />
<extralod level="2" resolution="2.08333333333333" scale="2400"   id="twoZ"   />
<extralod level="3" resolution="4.16666666666667" scale="4800"   id="threeZ" />
<extralod level="4" resolution="6.25"       scale="7200"   id="fourZ"  />
<extralod level="5" resolution="12.5"             scale="14400"  id="fiveZ"  />
<extralod level="6" resolution="25"               scale="24000"  id="sixZ"   />
<extralod level="7" resolution="50"               scale="48000"  id="sevenZ" />
<extralod level="8" resolution="100"              scale="96000"  id="eightZ" />
<extralod level="9" resolution="200"              scale="192000" id="nineZ"  />
0 Kudos
ErwanCaradec
Emerging Contributor
Ah ! Okey Paul.
Well, when i posted the src.zip, it was a working solution but not very clean because some core distribution files of the FlewViewer were modified (ConfigData.as, ConfigManager.as and MapManager.mxml). In the code you posted, the two lines you removed are an example, it depend on wich scales level you want to increase zooming. In the lines added id field is not necessary.

In the ExtraLodsWidget, only one widget file is modified (NavigationWidget.mxml), none of the file in the com.esri.viewer directory, so i think it is a better way to increase zooming over your tiled layers if you need it.

Regards,
Erwan
0 Kudos
PaulLang
Deactivated User
Ok, I will give the widget a try.
Do you know how to remove the other lods so I can just use those I put in the config file?
0 Kudos
ErwanCaradec
Emerging Contributor
The widget can only push lods in map.lods array, it can't remove others. I'm not sure to understand your needs, because if you remove lods added by the tiled layers this layers won't work (they are constitued from cached images of the raster at spécified scales). Maybe should you use dynamic's layer only ?
0 Kudos