Éric Lemoine
f9cb029a74
ol.control.Zoom no longer require ol.event
2012-07-09 21:32:10 +02:00
Éric Lemoine
77b809bead
ol.control.Attribution no longer require ol.event
2012-07-09 21:31:56 +02:00
Éric Lemoine
04f87f8f73
ol.Map:destroy is back (api tests pass again)
2012-07-09 21:09:42 +02:00
Éric Lemoine
aebfb643ac
better type checking
2012-07-09 20:51:28 +02:00
Éric Lemoine
bc72e2e444
ol.control.Attribution no longer relies on map.getEvents
2012-07-09 09:31:33 +02:00
Éric Lemoine
9e693f29c5
use the mousewheel handler
2012-07-09 09:28:56 +02:00
Éric Lemoine
34a450a009
Merge branch 'master' into event
...
Conflicts:
src/ol/Map.js
src/ol/event/Drag.js
2012-07-09 08:57:55 +02:00
Tim Schaub
5a485ea856
Getting explicit about pixels and size.
...
Eventually, well have to ask renderers for all pixel and size related stuff. And the map overlay renderer will do all pixel<->loc math. For now, we let the map do this math based on its viewport - as this is where the mouse events are handled and it is pixels relative to the viewport that are being generated. For now, the getViewportPixelForLoc and getLocForViewportPixel are now more explicitly named.
2012-07-08 20:57:36 -06:00
Tim Schaub
b24d63a898
Spaces for tabs.
2012-07-08 19:34:53 -06:00
ahocevar
7bf1ffe606
Nice improvement of the wheel zooming experience.
2012-07-08 20:27:10 +02:00
ahocevar
ca2414c9d6
Simplify controls by registering click events on own elements.
...
This makes sense for all controls that provide buttons or similar UI elements that don't interfer with map interaction.
2012-07-08 12:17:11 +02:00
Éric Lemoine
8e36850e7f
create parent event target for the map, to allow stopping event propagation
2012-07-05 13:55:57 +02:00
Éric Lemoine
946cd33350
make ol.Map inherit from goog.EventTarget, and add an ol.handler.Drag
2012-07-05 11:11:35 +02:00
ahocevar
578f74eb86
Less magic.
...
Each control is responsible for its handlers. And all controls are rendered into an overlay, not any more depending on assumptions about link click handling.
2012-06-29 09:44:52 +02:00
ahocevar
f28fe4912f
I think we decided to name events in a noun+verb fashion.
2012-06-26 13:34:34 +02:00
ahocevar
b7c8486289
Testing Control.js.
2012-06-26 00:18:29 +02:00
ahocevar
9c46aadd22
Adding attribution control and attribution.
2012-06-24 22:22:18 +02:00
ahocevar
c218e7a139
Adding missing return type.
2012-06-24 22:12:58 +02:00
ahocevar
9758910fc6
Making Element/Node types more consistent.
2012-06-24 22:12:38 +02:00
ahocevar
d8599f28b9
Let the controls decide about stopPropagation and preventDefault.
2012-06-24 19:53:42 +02:00
ahocevar
bd8354c831
Adding destroy method.
...
The control now removes its markup from the DOM. A nice aspect of our event handling is that no events need to be registered on any of the dom elements that controls create.
2012-06-24 17:08:32 +02:00
ahocevar
bc37121ae0
Accessibility - now we can use the keyboard to zoom in and out.
2012-06-24 13:45:32 +02:00
ahocevar
218ad77103
preventDefault now happens in Events.js for all handled events.
2012-06-24 13:43:53 +02:00
ahocevar
7f01528311
Proper destruction.
2012-06-24 13:41:00 +02:00
ahocevar
0c9b3d1d58
Making map_ protected instead of private.
2012-06-24 11:39:42 +02:00
ahocevar
81b8a472d8
No longer need to calculate the anchor transformation.
2012-06-23 16:16:37 +02:00
ahocevar
c656bac601
Making the pointer position the zoom origin.
2012-06-23 14:22:54 +02:00
Tim Schaub
cfe3f14777
Stray console log.
2012-06-22 20:38:24 +02:00
ahocevar
c72f803038
Adding scroll sequence and scroll support for the Navigation control.
2012-06-22 19:51:35 +02:00
ahocevar
6c1d510bf0
Getting rid of compiler warnings.
2012-06-22 17:17:25 +02:00
ahocevar
f12a20d7aa
Stop the event chain when we have handled the event.
2012-06-22 17:14:46 +02:00
ahocevar
0420d2efb9
Adding Zoom control.
...
Tests still missing.
2012-06-22 17:14:22 +02:00
ahocevar
ed62cc00a7
Fixing typos.
2012-06-21 19:36:11 +02:00
ahocevar
188615391d
Using a map for controls also.
2012-06-21 19:33:33 +02:00
ahocevar
81a55eb320
Finally fixing event sequences.
2012-06-21 17:26:23 +02:00
ahocevar
6213e07f96
Navigation control with Drag sequence Dragger
...
This is totally unfinished, but tests pass, and it is only meant to give the map a Navigation control.
2012-06-21 14:08:50 +02:00
ahocevar
6ddda53a70
Initial port of Control.js and Navigation.js.
...
This also adds an Events instance to the map, so the Navigation control can register events on the map.
Tests still missing.
2012-06-20 23:21:44 +02:00