Ticket #513 (closed bug: duplicate)
Pixel/coordinates readings are inconsistent between browser and layouts.
| Reported by: | openlayers | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 2.5 Release |
| Component: | Events | Version: | 2.3 |
| Keywords: | Cc: | marco.reis@… | |
| State: |
Description
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)
