map.setScale() and map.getScale()

2229
2
Jump to solution
06-26-2014 10:19 AM
by Anonymous User
Not applicable
Original User: sagunn

Has anyone seen this behavior before?  I'm at version 3.9 of the JS API.

Trying this in the console:

[ATTACH=CONFIG]34917[/ATTACH]

why the difference?  Am I missing something related to projection or spatialReference (I am at 3857)?

Seems to be exaggerated at smaller scales:
[ATTACH=CONFIG]34918[/ATTACH]

FWIW, calling setScale() within the console does change the zoom level on the map in real time...

Thanks for your help!
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: kenbuja

When you use a standard Esri basemap, you can't set an exact scale like that. The scale is being set to the closest available scale as dictated by the basemap. The general scales can be found here, but you can see the exact scales for the basemaps  in the Tile Info section on their MapService pages (Street Maps, for example).

View solution in original post

0 Kudos
2 Replies
by Anonymous User
Not applicable
Original User: kenbuja

When you use a standard Esri basemap, you can't set an exact scale like that. The scale is being set to the closest available scale as dictated by the basemap. The general scales can be found here, but you can see the exact scales for the basemaps  in the Tile Info section on their MapService pages (Street Maps, for example).
0 Kudos
ScottGunn
New Contributor III
Oh, that makes a lot of sense--it's based on the LOD cache levels...

thanks, Ken!
0 Kudos