[OpenLayers-Trac] [OpenLayers] #513: Pixel/coordinates readings are inconsistent between browser and layouts.
OpenLayers
trac at openlayers.org
Sun Mar 4 14:24:04 EST 2007
#513: Pixel/coordinates readings are inconsistent between browser and layouts.
------------------------+---------------------------------------------------
Reporter: openlayers | Owner:
Type: bug | Status: new
Priority: major | Milestone:
Component: Events | Version: 2.3 RC1
Keywords: |
------------------------+---------------------------------------------------
Mouse position, and consequently coordinates (which is a function of the
first) are not consistent. It varies between browsers and, more
importantly in my opinion, it depends of the DOM structure above the DIV
element that contains the map, namely on its parents and peers and their
styles, or even the style of the map DIV itself in case of a border!
This makes a more designed layout of the page containing the map, or the
use of some fancy effects using some Javascript library like Scriptaculous
(to create, for example, a draggable map container) a nightmare, and
prohibits the reading of precise coordinates from mouse moves, which is
something very important if you’re developing online technical tools.
Marco Reis (CONEXA)
--
Ticket URL: <http://trac.openlayers.org/ticket/513>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list