Using 3.11 api
Example of non -working behavior at
Manatee County GIS Mobile Server
I am having trouble with doubleclickzoom. it zooms properly, and makes sure where you clicked is visible, but it does not center completely. I want the click location to become the exact center of the map.
I can override the behavior
map.on("dbl-click", lang.hitch(this, function(evt){ map.centerAndZoom(evt.mapPoint, map.getLevel()+1); }));
But then all double click events (draw end, measure end, etc..) cause zoom and center events, which I do not want.
Is there anything i can do so that
map.enableDoubleClickZoom()
actually does a true center? the Api says it should center, but it isnt
https://developers.arcgis.com/javascript/jsapi/map-amd.html#enabledoubleclickzoom
I certainly agree with you Jeff. My guess is true centering would require handling screen dimensions and pixel densitites?