ahocevar
3d62b67172
Introducing ol.overlay.Overlay and an overlayContainer
...
ol.overlay.Overlay can be used to bind DOM elements to a
coordinate on the map. It has positioning options to support
e.g. popups or image markers that have an anchor at the bottom
and an unknown size.
The overlayContainer stops propagation on mousedown and
touchstart events, so clicks and gestures on overlays don't
trigger any MapBrowserEvent. To make this work reliably, we now
only fire dblclick in mapbrowserevent.js when there was a
previous mousedown or touchstart. The default container for
controls is now the overlayContainer.
2012-09-28 13:01:56 +02:00
Tom Payne
e7eccb302d
Cope with map being null
2012-09-28 12:51:10 +02:00
Tim Schaub
eb29e6a43c
Using null instead of null or object or undefined
2012-09-28 12:08:21 +02:00
Tom Payne
7415a11c63
More responsive zoom buttons on touch devices thanks to @ahocevar
2012-09-27 18:07:17 +02:00
Tom Payne
0faab71e3f
Implement new control architecture
2012-09-27 17:54:20 +02:00
Tom Payne
65b4041aa3
Remove ol.control.DragBox temporarily
2012-09-27 17:54:20 +02:00
Éric Lemoine
bd0f3d2015
Zoom control does not know about the constraints
2012-09-27 13:42:30 +02:00
Tom Payne
65b8e0f915
Use object literals and use generic tile layer
2012-09-27 12:45:00 +02:00
ahocevar
26e3179b2e
Making linter and Travis happy
2012-09-27 12:18:05 +02:00
ahocevar
caaec7c366
Use the map's zoom method instead of our own
...
This also allows us to get rid of the resolutions constraint and configuration.
2012-09-27 12:05:53 +02:00
Éric Lemoine
25e00e5d74
Add FIXME to control/zoom.js
2012-09-27 00:10:54 +02:00
Éric Lemoine
79166dc1d6
Constraint objects moved to ol namespace from ol.interaction namespace
2012-09-27 00:10:54 +02:00
Tom Payne
290d03e76f
s/store/source/
2012-09-26 19:43:23 +02:00
ahocevar
e390ff80ea
Adding zoom control
2012-09-26 18:27:45 +02:00
ahocevar
c7a32b33da
Fixing indentation
2012-09-26 15:11:47 +02:00
ahocevar
78c380c9a5
Type cast to make the compiler happy
2012-09-26 15:05:52 +02:00
ahocevar
fa16adec02
Making more use of Closure
2012-09-26 14:38:29 +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
c43e04ea77
Refactor to support stricter new compiler
2012-09-25 00:03:53 +02:00
Tom Payne
8394147df1
Satisfy gjslint
2012-09-24 21:25:29 +02:00
ahocevar
002e23cb74
Satisfy latest Closure library/tools.
2012-09-24 17:59:34 +02:00
Tim Schaub
ed754fbfdf
Control in the ol.control namespace.
2012-09-24 17:15:30 +02:00
Tim Schaub
1f9e2aa3c4
Move Layer into ol.layer namespace.
2012-09-24 17:08:36 +02:00
Tom Payne
f8c31ba45c
s/ol3/ol/
2012-09-24 14:21:41 +02:00
Tom Payne
4aff22e980
ol3 is now internal, ol is now external
...
As discussed with @ahocevar, @elemoine and @tschaub.
2012-08-29 20:46:42 +02:00
Éric Lemoine
83994081b5
mouseposition listens to mousemove and mouseout on map viewport
2012-08-20 21:51:23 +02:00
Tom Payne
44cd3ceccb
Re-order functions alphabetically
2012-08-16 17:56:19 +02:00
Tom Payne
4f2b6a0c22
Initialize all member variables in constructor
2012-08-16 16:42:56 +02:00
Tom Payne
d9eb9eda60
Add missing check
2012-08-13 21:31:41 +02:00
Tom Payne
5ae3d25f52
Add some FIXMEs
2012-08-13 17:24:31 +02:00
Tom Payne
e9e1b8eaa9
Improve handling of undefined coordinates
2012-08-13 17:24:25 +02:00
Tom Payne
85ca630935
Add ol.control.MousePosition
2012-08-13 16:45:10 +02:00
Tom Payne
ec3475806e
s/View/Control/, thanks @elemoine
2012-08-13 16:45:10 +02:00
Tom Payne
208db33bfc
s/Control/Interaction/, thanks @elemoine
2012-08-13 16:45:10 +02:00
Tom Payne
eab38e9042
Use Alt key instead of Shift for rotation
2012-08-07 17:20:42 +02:00
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