Select to view content in your preferred language

map.scale=0 when Image Service used as only base layer

492
3
Jump to solution
06-18-2012 11:49 AM
DanJensen
Deactivated User
I would like to use an image service as the only base layer inside my configuration of the ArcGIS Viewer for Flex.  However, when I do, the map scale is set to zero.  Other tools that use map.scale are therefore broke.

Any help appreciated.

-Dan
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DanJensen
Deactivated User
No, 2.4.
While it is true that map scale is 0 when an image service is the only base layer, this ultimately was not the source of my problem.  When you are not using a tiled service
map.level--;

results in an infinate loop.  Commenting out this code within other tools made it possible for them to work again.

Thanks,
-Dan

View solution in original post

0 Kudos
3 Replies
DasaPaddock
Esri Regular Contributor
Are you using 3.0?
0 Kudos
DanJensen
Deactivated User
No, 2.4.
While it is true that map scale is 0 when an image service is the only base layer, this ultimately was not the source of my problem.  When you are not using a tiled service
map.level--;

results in an infinate loop.  Commenting out this code within other tools made it possible for them to work again.

Thanks,
-Dan
0 Kudos
DasaPaddock
Esri Regular Contributor
Yes, map.level can not be set when map.lods is null.

You can fix the scale by either upgrading to 3.0 or by upgrading to 2.5 and setting the units on the map like this:
http://forums.arcgis.com/threads/49920-Help-with-WMS?p=172545&viewfull=1#post172545
0 Kudos