[OpenLayers-Trac] [OpenLayers] #3029: Incorrect scale due to OpenLayers.DOTS_PER_INCH

OpenLayers trac-20090302 at openlayers.org
Tue Jan 25 12:22:29 EST 2011


#3029: Incorrect scale due to OpenLayers.DOTS_PER_INCH
------------------------+---------------------------------------------------
 Reporter:  dmartella   |       Owner:              
     Type:  bug         |      Status:  new         
 Priority:  major       |   Milestone:  2.11 Release
Component:  Util        |     Version:  2.10        
 Keywords:  Scale, DPI  |       State:              
------------------------+---------------------------------------------------
 Sometimes Map.getScale() returns incorrect scale values because
 OpenLayers.DOTS_PER_INCH is a constant set to 72. I propose a fix for
 programmatically calculate dpi value as described here:

 http://stackoverflow.com/questions/476815/can-you-access-sceen-displays-
 dpi-settings-in-a-javascript-function/838755#838755

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3029>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list