Commit Graph

111 Commits

Author SHA1 Message Date
Tom Payne
49dc2788d5 Add ol.control.Keyboard hack 2012-08-07 14:59:39 +02:00
Tom Payne
0edb85f159 Clean up whitespace 2012-08-06 09:59:33 +02:00
Tom Payne
d62f776be5 Fix zoom to anchor 2012-08-06 09:14:28 +02:00
Tom Payne
aad50aa8a4 Add ol.control.ResolutionConstraint.createContinuous 2012-08-06 01:14:25 +02:00
Tom Payne
17c68a18fc Fix typo 2012-08-06 01:14:25 +02:00
Tom Payne
051175ea68 Add another FIXME 2012-08-04 16:53:48 +02:00
Tom Payne
b7e7a9b3ba Add zoom to/from anchor 2012-08-04 16:53:48 +02:00
Tom Payne
97eabc8693 Parameterize pixel delta 2012-08-04 15:51:35 +02:00
Tom Payne
7ab3b3dd82 Add rotation constraints 2012-08-04 15:51:35 +02:00
Tom Payne
0fd122a1ed Add and use ol.Constraints 2012-08-04 15:51:35 +02:00
Tom Payne
e7cb2ca383 s/ZoomFunction/ResolutionConstraint/ 2012-08-04 15:51:35 +02:00
Tom Payne
c84d5ef9ef Use ol.control.CenterConstraint 2012-08-04 15:51:34 +02:00
Tom Payne
1f72319b05 Add ol.control.CenterConstraint 2012-08-04 15:51:34 +02:00
Tom Payne
95371b596e Use ol.control.ZoomFunction 2012-07-30 15:09:50 +02:00
Tom Payne
187da7767f Add ol.control.ZoomFunction 2012-07-30 15:09:50 +02:00
Tom Payne
f39a09807b Update FIXMEs 2012-07-30 00:35:07 +02:00
Tom Payne
74dd45f856 Add ultra-sexy RotateAndZoom control 2012-07-30 00:30:28 +02:00
Tom Payne
8b900c7822 Add ol.control.ShiftDragRotate 2012-07-30 00:09:47 +02:00
Tom Payne
2f32158374 Rename ol.control.DragZoom to ol.control.ShiftDragZoom 2012-07-29 17:17:49 +02:00
Tom Payne
a8664df76b Make ol.Map.isDef stricter 2012-07-29 17:09:32 +02:00
Tom Payne
228547d0fe Add ol.Map.isDef 2012-07-24 20:47:34 +02:00
Éric Lemoine
6d28ad2740 use goog.fx.Dragger for map drag 2012-07-23 23:26:48 +02:00
Tom Payne
269bd9387e Rename freeze/thaw to freezeRendering/unfreezeRendering 2012-07-22 22:37:43 +02:00
Tom Payne
5aa01a4b6b Add ol.control.KeyboardZoom 2012-07-22 14:54:17 +02:00
Tom Payne
ce0866dac4 Add ol.control.KeyboardPan 2012-07-22 14:54:17 +02:00
Tom Payne
7ed71f7149 Make browserEvent property public 2012-07-22 14:54:17 +02:00
Tom Payne
cbafc0795d Add another FIXME 2012-07-22 11:40:48 +02:00
Tom Payne
c547404615 Create ol.Coordinate around goog.math.Coordinate 2012-07-19 10:34:12 +02:00
Tom Payne
33d252f0f7 Only start drag pan if shift key is not pressed 2012-07-19 10:08:35 +02:00
Tom Payne
d47eb3453f Implement initial drag zoom control (shift + drag) 2012-07-19 00:29:25 +02:00
Tom Payne
4e347dcf45 Don't drag on incompletely defined maps 2012-07-19 00:29:25 +02:00
Tom Payne
0e3b97a0b6 s/event/mapBrowserEvent/g 2012-07-19 00:29:25 +02:00
Tom Payne
1d6101a5a1 Implement ol.control.DragPan 2012-07-19 00:29:25 +02:00
Tom Payne
4299cf4fae Add startCenter and startCoordinate to ol.control.Drag 2012-07-19 00:29:24 +02:00
Tom Payne
aab2bc093a Add experimental drag control (to be replaced) 2012-07-18 15:12:31 +02:00
Tom Payne
4754ed1cc2 Add ol.control.MouseWheelZoom 2012-07-18 15:12:30 +02:00
Tom Payne
c6343ed2bc Add experimental controls infrastructure, thanks @elemoine 2012-07-18 15:12:30 +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