euzuro
ed3c2a6f0b
change function name from ScreenPx to ViewPortPx
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@630 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 22:51:55 +00:00
Schuyler Erle
2f9c7dfbd3
Fixed MouseDefaults so that click doesn't fire immediately after drag. This needs to be tested in IE.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@571 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-12 00:32:48 +00:00
crschmidt
7d0b489e42
Commit changes to include a 'minor' flag on setCenter, that indicates that a map should not call the moveend trigger.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@558 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-08 16:13:42 +00:00
euzuro
f115b797a3
Changed around the order of arguments for createImage, createDiv, and createAlphaImage. bubbled out helper function OpenLayers.Util.modifyDOMElement() to handle common mods. Official order now is: id, px, sz, imgURL, position, border[, overflow]
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 01:23:11 +00:00
euzuro
06cbeb2f11
fix for #60
...
conversions to/from lonlat/px need to take into account
the offset of the layersContainerDiv.
I have introduced the following functions for converting
between layer and screen pixel values:
getLayerPxFromScreenPx() and getScreenPxFromLayerPx()
they are pretty self-explanitory.
I then renamed:
getPixelFromLonLat() and getLonLatFromPixel()
to:
getScreenPxFromLonLat() and getLonLatFroScreenmPx()
and added:
getLayerPxFromLonLat() and getLonLatFromLayerPx()
updates were made throughout the code, demos, and tests
so everything should still run smoothly.
-e-
git-svn-id: http://svn.openlayers.org/trunk/openlayers@329 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 18:45:50 +00:00
crschmidt
c0ec7f9a00
Change @require to @require:
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 17:17:22 +00:00
Schuyler Erle
7683e0853a
Fix to Control.MouseDefaults stops panning when dragging off the map. Closes #29 for good, I hope.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@308 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 03:20:22 +00:00
crschmidt
9190dd18d2
Add @require pragma to all source files.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 15:20:31 +00:00
crschmidt
81c9315c17
Finishing Schuyler's commit the other day, which was designed to change behavior on release of shift key, but failed to actually do so...
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@276 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 14:45:51 +00:00
euzuro
f5b1cc270c
fixing tabs
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@256 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 13:05:14 +00:00
Schuyler Erle
af7dc7661a
Commented out code to cancel zoom box if shift key is released before left mouse button. I find myself doing this consistently by accident, so we should probably find another way to cancel the zoom, like hittin ESC or something.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@245 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 03:47:19 +00:00
Schuyler Erle
7999253c74
Make the zoom box thicker and semi-opaque.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@244 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 03:27:51 +00:00
crschmidt
e97ccc7dd4
Missed a switch from this.map -> this on mouseDefaults. Dragging was
...
broken.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@219 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 03:12:53 +00:00
crschmidt
d0da958e57
1. Change the calling syntax for events on this control so that they go
...
from this instead of this.map. This has practical as well as idealogical
benefits, namely that we can now call other methods on the control from
within a control. This is neccesary for...
2. When the shift key is lifted, stop the zoomBox. This is the way in
which users can *not* zoom once they've started.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@217 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 00:35:04 +00:00
crschmidt
24eb8fe144
Implement Drag-to-Zoom for ticket #30 .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@216 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-20 22:18:44 +00:00
crschmidt
563b828ede
Migrate Map MouseControls to MouseDefaults.js. This moves event handling into a control, where we can modify it and edit it without mucking about in the main map class, bringing this portion of the code more into line with the way other aspects of the controls situation work.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@204 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-20 02:29:39 +00:00