ahocevar
1aeebf09aa
Remove unused disposeInternal function
2019-08-31 20:56:18 +02:00
ahocevar
74e8e013cf
Use pepjs instead of our own pointerevent polyfill
2019-08-29 18:58:53 +02:00
Olivier Guyot
405e206717
View / better names for getValid* and applyParameters_ methods
2019-02-22 15:04:54 +01:00
Olivier Guyot
433bccd207
Linting and fixes for unit tests
2019-02-22 15:01:30 +01:00
Olivier Guyot
ef6d17d817
View / add a 'smoothResolutionConstraint' options
...
When enabled (true by default), the resolution min/max values will be applied with
a smoothing effect for a better user experience.
2019-02-22 15:01:30 +01:00
Olivier Guyot
3c1e3779e2
View / add a method to compute a valid zoom level
...
The `getValidZoomLevel` apply the current resolution constraint to return
a value that is guaranteed valid.
This is used for interactions & controls which need a target value to work:
the +/- buttons, the zoom clider, the dragbox zoom and the mouse wheel zoom.
2019-02-22 15:01:30 +01:00
Olivier Guyot
4e1ece16ed
View / implemented begin- and endInteraction methods
2019-02-22 15:01:30 +01:00
Frederic Junod
9ab201642c
Simplify import path in ol/control/
2018-11-05 16:26:45 +01:00
Andreas Hocevar
945f686f8a
Remove 2nd argument of parseFloat
2018-10-11 14:00:15 +02:00
itjope
2c6e80a601
Handle zoom slider position with floating point numbers
2018-10-11 12:50:51 +02:00
Frederic Junod
6ce56329dd
Fix wrong type
2018-09-28 08:21:12 +02:00
Andreas Hocevar
d9698dcb06
Merge pull request #8698 from intouch-smartwater/fix-zoom-slider-events
...
Fix zoom slider events
2018-09-24 13:15:43 +02:00
James Cheese
9c5227850f
Remove events causing errors on touch-screen devices.
...
Fix for case #5226
2018-09-24 09:55:13 +01:00
James Cheese
75947a6759
Revert changes from 7b687be
...
Adapted the changes to new class structures introduced since the original
deletion before committing, to ensure that everything compiles correctly.
2018-09-24 09:55:13 +01:00
Frédéric Junod
32dea69f5e
Merge pull request #8688 from fredj/ts_fixes
...
Fix PointerEventHandler event type
2018-09-24 10:02:49 +02:00
Frederic Junod
9b447ef3ed
Fix PointerEventHandler event type
2018-09-21 09:19:05 +02:00
Frederic Junod
821a08ea79
Remove extra imports in jsdoc
...
The symbols are already imported (es6 import)
2018-09-21 09:12:06 +02:00
Frederic Junod
ea616e7751
Don't import ourselves
2018-09-06 09:05:32 +02:00
Tim Schaub
ccfacc5ee6
Transformed types
...
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e ):
jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Frederic Junod
2e60961700
Use 'HTMLElement' type instead of 'Element' in controls
2018-07-19 16:02:58 +02:00
Frederic Junod
f140ff368d
Move jsdoc constructor comments for controls
2018-07-17 16:44:53 +02:00
ahocevar
6530119918
Use extends and super for control/ZoomSlider
2018-07-17 14:58:37 +02:00
Tim Schaub
7b4a73f3b9
Automated class transform
...
npx lebab --replace src --transform class
2018-07-16 16:18:16 -06:00
Frederic Junod
6da2e4cef4
More precise Event typing
2018-06-29 12:53:20 +02:00
ahocevar
28409486a5
Make classes in ol/ available as named exports from ol
2018-06-21 18:08:17 +02:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Frederic Junod
a84863528c
Module type for ol.pointer.PointerEvent
2018-04-20 08:47:27 +02:00
Frederic Junod
a43b90056b
Module type for ol.pointer.PointerEventHandler
2018-04-20 08:44:01 +02:00
Frederic Junod
4e0d195236
Remove unused minResolution and maxResolution
2018-03-29 16:32:21 +02:00
Tim Schaub
a3ead88c57
Module types for controls
2018-03-18 10:23:01 -06:00
Tim Schaub
2e0fd1c12d
Module type for Control
2018-03-18 09:53:35 -06:00
Tim Schaub
0edbfde4d3
Module type for MapEvent
2018-03-18 09:48:06 -06:00
Frederic Junod
403a7bdfc7
Mark optional property with square brackets
2018-03-13 13:29:21 +01:00
Frederic Junod
bb3072153b
Remove undefined type when the property is optional
2018-03-13 12:33:35 +01:00
Frederic Junod
813b72251a
Mark optional property with square brackets
2018-03-12 15:58:44 +01:00
Tim Schaub
4c7a07e4b8
Move ZoomSliderOptions to ol/control/ZoomSlider
2018-03-11 11:31:40 -06:00
Andreas Hocevar
95d6251dbb
Get rid of olx.js and typedef.js typedefs for ol
2018-03-08 18:57:24 +01:00
Tim Schaub
a480b0065b
Named exports from ol/events/Event
2018-02-18 23:08:04 -07:00
Tim Schaub
4106ed8776
Export render from ol/control/ZoomSlider
2018-02-18 23:06:56 -07:00
Tim Schaub
80fa8dbaf5
Remove private static members from control constructors
2018-02-09 15:08:10 -07:00
Tim Schaub
7e7631c42a
Named exports from ol/events
2018-01-24 10:09:57 -07:00
Tim Schaub
ad62739a6e
Use blocked scoped variables
...
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
8a74d6b8db
Rename _ol_pointer_PointerEventHandler_ to PointerEventHandler
2018-01-11 12:06:59 -07:00
Tim Schaub
853cecd406
Rename _ol_ViewHint_ to ViewHint
2018-01-10 09:35:42 -07:00
Ron Young
a11208d126
rename _ol_math_ imports
2017-12-20 19:31:00 -06:00
Marc Jansen
a7c5897bdb
Named exports from ol/css module
2017-12-19 11:38:56 +01:00
Frederic Junod
ef3f60e636
Rename _ol_pointer_EventType_ to PointerEventType
2017-12-18 17:19:45 +01:00
Marc Jansen
479c7a4668
Rename _ol_events_EventType_ to EventType
2017-12-15 16:19:03 +01:00
Marc Jansen
1cc682e488
Rename _ol_events_Event_ to Event
2017-12-15 16:17:56 +01:00
Tim Schaub
7a9a3651e1
Rename _ol_control_ZoomSlider_ to ZoomSlider
2017-12-14 13:08:14 -07:00