Andreas Hocevar
79f5f46d27
Remove lint
2021-06-28 18:10:51 +02:00
Maximilian Krög
f999f1a675
Fix zoomslider layout with padding
2021-04-16 00:29:06 +02:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Tim Schaub
19bb3f8c88
Consistent use of Array and Object types
2021-02-02 13:53:10 -07:00
elnabo
81103c9253
Allow mouse input if map is rendered in an other window
2020-10-02 09:39:19 +02:00
Andreas Hocevar
886ca26c6a
Remove elm-pep dependency
2020-06-11 13:11:28 +02:00
Maximilian Krög
c4c790a2be
Defer ZoomSlider initialization until its size is available
2020-05-26 09:20:09 +02:00
Tim Schaub
bfee5c00c9
Update function return types
2020-05-18 17:11:13 -06:00
Andreas Hocevar
e5167f4e12
Fix custom controls with user-provided element
2020-05-15 17:50:44 +02:00
Andreas Hocevar
7f6258dd0d
Set pointerEvents style programmatically instead of relying on ol.css
2020-04-16 17:34:40 +02:00
Andreas Hocevar
f4d64700ef
Fix private scope type issues in controls
2020-04-15 10:53:24 +02:00
Tim Schaub
054af09032
Make code prettier
...
This updates ESLint and our shared eslint-config-openlayers to use Prettier. Most formatting changes were automatically applied with this:
npm run lint -- --fix
A few manual changes were required:
* In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
* In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason. While editing this, I reworked `ExampleBuilder` to be a class.
* In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Frederic Junod
706dd3c87c
Remove all inheritDoc tags from src/ol/control
2020-04-03 07:52:51 +02:00
Andreas Hocevar
f8f7f83be7
Do not expose static render function of controls
2020-01-29 20:21:08 +01:00
Andreas Hocevar
88b8b2f7cb
Conditional default prevention instead of touch-action: none
2019-11-25 01:09:05 +01:00
Andreas Hocevar
569deddd06
Use elm-pep instead of PEP as pointer events polyfill
2019-11-20 07:59:32 +01:00
Tim Schaub
c03c359a20
Separate internal and API methods for the view
2019-09-21 11:30:14 -06:00
ahocevar
9366dee233
Use fixed fork of pepjs
2019-09-04 21:37:38 +02:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
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