Commit Graph

521 Commits

Author SHA1 Message Date
Tom Payne
e2e983728e Add controls to map 2012-09-28 12:52:54 +02:00
Tim Schaub
eb29e6a43c Using null instead of null or object or undefined 2012-09-28 12:08:21 +02:00
Tom Payne
7dbc70bcac Don't try to be too clever with size changes 2012-09-27 14:05:19 +02:00
Tom Payne
ac0e02039c s/POST_RENDER/POSTRENDER/ 2012-09-27 14:05:19 +02:00
Éric Lemoine
f78cad0d77 Merge pull request #27 from elemoine/constraints
Refactoring to make constraints work at the map level
2012-09-27 01:42:45 -07:00
ahocevar
1b18dbedb7 Dispatch MapBrowserEvent before interactions get it
By doing so, application event handlers can preventDefault on the event, and interactions won't get the event any more. This means that interactions are default behavior that can be prevented by application event handlers.
2012-09-27 09:54:16 +02:00
Éric Lemoine
cf20fd3e49 Replace map.zoomIn and map.zoomOut by map.zoom(delta) 2012-09-27 09:37:19 +02:00
Tom Payne
ccf8eb3c97 Don't pass viewport size monitor to ol.Map constructor 2012-09-27 09:36:55 +02:00
Éric Lemoine
79166dc1d6 Constraint objects moved to ol namespace from ol.interaction namespace 2012-09-27 00:10:54 +02:00
Éric Lemoine
b6bb05bf76 Refactoring to set the constraints to the map 2012-09-27 00:09:29 +02:00
Tom Payne
e7063953d7 Don't create a class for map options 2012-09-26 12:54:53 +02:00
Tom Payne
b73b2d12c4 Replace ol.createMap with friendlier ol.Map constructor 2012-09-26 12:54:53 +02:00
ahocevar
3bd204fb6a DragBox control provides visual shiftdragzoom feedback
Adding a new DragBox control and using it in the shiftdragzoom interaction to provide visual feedback of the zoom box. The control is nicely separated from the interaction - it only draws the box and does not perform any action.
2012-09-26 12:50:14 +02:00
Tom Payne
9f1743cb4d Remove unused @export tags 2012-09-26 11:28:26 +02:00
ahocevar
3c099a96b7 No longer tap-selecting elements on touch devices
This finalizes the effort to improve map browser event handling.
2012-09-25 19:32:08 +02:00
ahocevar
ce977e5364 Map browser event handling for touch devices
By handling click, dblckick and drag sequences in MapBrowserEvent, we can overcome closure issues with touch events. In particular, these issues were double drag events (from mousemove and touchmove) and a missing dblclick event on touch devices.
2012-09-25 17:28:01 +02:00
Tom Payne
b435ccc026 Satisfy gjslint 2012-09-25 10:26:10 +02:00
ahocevar
6b8e14c623 Don't trigger extra drag events on touch devices. 2012-09-25 08:30:57 +02:00
Tom Payne
8394147df1 Satisfy gjslint 2012-09-24 21:25:29 +02:00
Tim Schaub
d51cd1c395 Interaction in ol.interaction namespace. 2012-09-24 17:18:21 +02:00
Tom Payne
f8c31ba45c s/ol3/ol/ 2012-09-24 14:21:41 +02:00