AnsweredAssumed Answered

Zoom bug when specifying "lods" in esri.Map constructor?

Question asked by jacobsj on Feb 11, 2013
Latest reply on Feb 13, 2013 by jacobsj
When I specify the lods option in the constructor for esri.Map I get strange behavior when zooming at certain scales. I first noticed this behavior when updating one of our apps from v3.2 to v3.3 of the ArcGIS JS API.

It's kind of difficult to describe, but you can see this behavior by going to this JSFiddle and zooming in.  When you zoom in past a certain point you will see the zoom transition but then it goes back to the previous zoom level.

Is this a bug, or is there something else I need to do in v3.3 to get this working correctly?

Below is the JavaScript code
/*global esri,dojo*/ /*jshint browser:true, debug:true */ require(["esri/map"], function () {     "use strict";     var map;      map = new esri.Map("map", {         basemap: "topo",         center: [-120.48706054684378,47.2717750663988],         zoom:0,         lods: [                 { "level": 0, "resolution": 1222.99245256249, "scale": 4622324.434309 },                 { "level": 1, "resolution": 611.49622628138, "scale": 2311162.217155 },                 { "level": 2, "resolution": 305.748113140558, "scale": 1155581.108577 },                 { "level": 3, "resolution": 152.874056570411, "scale": 577790.554289 },                 { "level": 4, "resolution": 76.4370282850732, "scale": 288895.277144 },                 { "level": 5, "resolution": 38.2185141425366, "scale": 144447.638572 },                 { "level": 6, "resolution": 19.1092570712683, "scale": 72223.819286 },                 { "level": 7, "resolution": 9.55462853563415, "scale": 36111.909643 },                 { "level": 8, "resolution": 4.77731426794937, "scale": 18055.954822 },                 { "level": 9, "resolution": 2.38865713397468, "scale": 9027.977411 },                 { "level": 10, "resolution": 1.19432856685505, "scale": 4513.988705 },                 { "level": 11, "resolution": 0.597164283559817, "scale": 2256.994353 },                 { "level": 12, "resolution": 0.298582141647617, "scale": 1128.497176 }         ]     }); });

Outcomes