Commit Graph

5188 Commits

Author SHA1 Message Date
Tom Payne 0b5f0d0c8e Add ol.Sphere#interpolate 2014-03-18 18:52:44 +01:00
Frédéric Junod 1b6f0a3fd1 Merge pull request #1870 from fredj/has-touch
Fix ol.BrowserFeature.HAS_TOUCH detection code
2014-03-18 08:00:56 +01:00
Bart van den Eijnden 5db19fc307 Merge pull request #1867 from bartvde/stability
Mark parts of control and overlay as stable
2014-03-17 20:06:52 +01:00
Tom Payne 84479a096f Merge pull request #1871 from twpayne/select-toggle
Replace ol.interaction.Select add with toggle
2014-03-17 17:10:45 +01:00
Tom Payne 395f1222a1 Add remove and toggle options to ol.interaction.Select 2014-03-17 16:43:41 +01:00
Tom Payne 29d1ee5e03 Add ol.events.condition.never 2014-03-17 16:40:38 +01:00
Tim Schaub f57a0544a0 Merge pull request #1845 from tschaub/buffered
Track replay group resolution and buffer max extent to capture strokes.
2014-03-17 08:50:07 -06:00
Frederic Junod f2d8ad34fa Fix ol.BrowserFeature.HAS_TOUCH detection code
Use goog.global instead goog.global.document.documentElement to avoid
false negative results when using the chrome development tools (Touch
Events emulation).

Code borrowed from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
except for the DocumentTouch part which is deprecated (https://developer.mozilla.org/en-US/docs/Web/API/DocumentTouch)

Fixes #1869
2014-03-17 15:04:55 +01:00
Tom Payne ade384f842 Merge pull request #1868 from twpayne/wrap-x
Add wrapX option to ol.source.XYZ
2014-03-17 14:16:56 +01:00
Tom Payne 27943d9ed6 Tidy up setting of default projection 2014-03-17 14:08:41 +01:00
Tom Payne 2100cd30df Add wrapX option to ol.source.XYZ 2014-03-17 14:08:41 +01:00
Bart van den Eijnden 83bf626e03 Mark parts of control and overlay as stable 2014-03-17 11:06:46 +01:00
Frédéric Junod 593bb46708 Merge pull request #1865 from fredj/device-orientation
Make ol.DeviceOrientation dispatch change events
2014-03-17 09:34:29 +01:00
Éric Lemoine f019f3ed44 Merge pull request #1858 from elemoine/geolocation
Add change event to Geolocation
2014-03-17 09:32:08 +01:00
Frederic Junod 6df7d5afda Make ol.DeviceOrientation dispatch change events 2014-03-17 09:05:52 +01:00
ahocevar 6de1636507 Initialize lastPixel_ properly 2014-03-14 15:24:58 +01:00
tsauerwein 155b9b3f86 Add comment about pointercancel listener 2014-03-14 10:16:27 +01:00
tsauerwein b2a37b8244 Remove not needed require 2014-03-14 10:16:27 +01:00
tsauerwein 41df4e0a23 Remove assertion again
When doing a double tap, the timeout id might get overridden.
2014-03-14 10:16:27 +01:00
tsauerwein 599de6a44a Listen also to pointerdown on overlay container 2014-03-14 10:16:27 +01:00
tsauerwein 89da5debfa Fix order of olx.interaction.* types 2014-03-14 10:16:27 +01:00
tsauerwein 51a557efbb Replace goog.structs.Map with plain object 2014-03-14 10:16:27 +01:00
tsauerwein 8a26ac6e24 Set preventDefault in PointerEvent constructor 2014-03-14 10:16:27 +01:00
tsauerwein 68fa5fb9ce Make use of goog.array.remove 2014-03-14 10:16:27 +01:00
tsauerwein debdc26fd2 Remove assignment inside expression 2014-03-14 10:16:27 +01:00
tsauerwein 71b424f74c Add missing require 2014-03-14 10:16:27 +01:00
tsauerwein 1a477b8f32 Assert that timeout reset ids are not overridden 2014-03-14 10:16:27 +01:00
tsauerwein d170281354 Re-use handler 2014-03-14 10:16:27 +01:00
tsauerwein e08fa37565 Use enums for pointer event types 2014-03-14 10:16:27 +01:00
tsauerwein 72d7a6e1ff Remove unused property pointerMap on NativeSource 2014-03-14 10:16:27 +01:00
tsauerwein b693ddf56e Remove assignments inside expression 2014-03-14 10:16:27 +01:00
tsauerwein 73c33e58e9 Remove unused constant NEW_MOUSE_EVENT 2014-03-14 10:16:27 +01:00
tsauerwein 77aa29e6ee Remove blank lines 2014-03-14 10:16:27 +01:00
tsauerwein 873d47d087 Remove not needed type cast 2014-03-14 10:16:27 +01:00
tsauerwein 6933023441 Remove leading whitespace 2014-03-14 10:16:27 +01:00
Éric Lemoine d08ab1ea78 PinchZoom interaction sets/unsets interacting hint 2014-03-14 10:16:27 +01:00
Éric Lemoine 544ceaf9f9 PinchRotate interaction sets/unsets interacting hint 2014-03-14 10:16:27 +01:00
Éric Lemoine b5339550b7 DragPan interaction sets/unsets interacting hint 2014-03-14 10:16:27 +01:00
Éric Lemoine d1ef5b0f5b Remove view hint handling from pointer interaction 2014-03-14 10:16:27 +01:00
Éric Lemoine 35b31730b5 Change a property from private to protected 2014-03-14 10:16:27 +01:00
Éric Lemoine b939ca24d7 Use a more explicit variable name 2014-03-14 10:16:27 +01:00
Tom Payne df71854561 Merge ol.pointer.CLONE_PROPS and CLONE_DEFAULTS into a single array 2014-03-14 10:16:27 +01:00
tsauerwein 5a358918e1 Rename interactions
The idea behind the naming scheme is that for example
for `DragRotate`, `Rotate` is the action and `Drag` the
gesture that issues the action.
2014-03-14 10:16:27 +01:00
Frederic Junod ee80238ed2 Use 'undefined' for undefined numbers
Conflicts:
	src/ol/pointer/touchsource.js
2014-03-14 10:16:27 +01:00
tsauerwein 18c2888987 Remove not used property TouchSource.firstXY 2014-03-14 10:16:27 +01:00
Frederic Junod f5b15f737f Move DEDUP_TIMEOUT and CLICK_COUNT_TIMEOUT constants out of the instance 2014-03-14 10:16:27 +01:00
tsauerwein fcb52d2361 Remove unnecessary call to goog.bind 2014-03-14 10:16:27 +01:00
tsauerwein 52839533e6 Fix typo in POINTERDRAG constant 2014-03-14 10:16:27 +01:00
tsauerwein 6742e6a03a Fix type annotation 2014-03-14 10:16:27 +01:00
Frederic Junod 028a183d11 Pass the mapping object to the ol.pointer.EventSource constructor
Conflicts:
	src/ol/pointer/mssource.js
2014-03-14 10:16:27 +01:00