Andreas Hocevar
04bc9ff0df
Improve types and docs for getStyle/setStyle
2020-06-11 13:53:59 +02:00
Andreas Hocevar
2cac6c4f39
Re-enable onFocusOnly option for interaction defaults
2020-06-03 13:13:59 +02:00
Tim Schaub
bfee5c00c9
Update function return types
2020-05-18 17:11:13 -06:00
Andreas Hocevar
33ce206bab
Get rid of MapBrowserPointerEvent
2020-05-10 16:54:34 +02:00
wussup
7e1305eab2
Update MouseWheelZoom.js
2020-04-20 16:01:51 +02:00
wussup
b6fc2bf2fe
Update MouseWheelZoom.js
2020-04-20 15:58:42 +02:00
wussup
020b387649
Update MouseWheelZoom.js
2020-04-20 15:56:05 +02:00
wussup
ce7be53970
Update MouseWheelZoom.js
2020-04-20 15:51:27 +02:00
wussup
aca8e0880c
Update MouseWheelZoom.js
2020-04-20 15:39:36 +02:00
wussup
fc4ec899ca
Add constrainResolution option
...
Sometimes we may have the functionality to set scale/resolution provided by a user and it can be any number (so constrainResolution in View class is not useful), but we would like to have constrainResolution in mouse wheel zoom event.
2020-04-20 15:36:19 +02:00
Andreas Hocevar
51194c69eb
Always prevent default after handleDragEvent
2020-04-17 22:47:09 +02:00
Andreas Hocevar
8ba051add3
Fix private scope issues in ol/interaction/*
2020-04-15 10:53:25 +02:00
Andreas Hocevar
b0f20d6bd6
Use imports for enum types
2020-04-15 10:53:23 +02:00
Andreas Hocevar
cb8fb147ec
Do not scroll page during feature translation
2020-04-07 08:53:54 +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
Andreas Hocevar
7dd6d72093
Avoid page scrolling when freehand drawing on mobile
2020-04-05 22:02:19 +02:00
Frederic Junod
da8ef43db7
Remove all inheritDoc tags from src/ol/interaction
2020-04-03 07:52:51 +02:00
Geert Premereur
2d7e55e26a
Small code cleanup
...
drop superfluous if.
2020-04-02 20:05:14 +02:00
Geert Premereur
a30a92a963
CK-240: fix multiple select interactions on map
...
event handlers have to be (de)activated when the interaction is added or removed to the map, not when constructed
added unit test
2020-04-02 20:05:14 +02:00
Geert Premereur
10c7f08fa4
Select style multiple select interactions removed
...
This fixes issue 10486 by removing the event listeners when an
interaction is removed from a map.
2020-04-02 20:00:37 +02:00
Tim Schaub
b4e51ed841
Merge pull request #10343 from mike-000/patch-10
...
Correct interactions with circle geometries when using user coordinates
2020-04-02 11:06:48 -06:00
Jackie Ng
6d16fe8405
Make arg2 of GeometryFunction also optional as it comes after an optional arg1
2020-03-05 01:01:03 +11:00
Andreas Hocevar
df1d0ac4a0
Merge pull request #10739 from ahocevar/timeout-typo
...
Fix typo in trackpad timeout
2020-02-27 07:49:09 +01:00
Matthias
b695320dcf
Update DragPan.js
2020-02-26 20:37:51 -05:00
Matthias
10a624db3c
Update MouseWheelZoom.js
2020-02-26 20:36:07 -05:00
Andreas Hocevar
e9227a9bc1
Fix typo in trackpad timeout
2020-02-26 19:27:20 +01:00
Andreas Hocevar
c73034fe7d
Handle Select interactions with falsey select style
2020-02-20 00:36:33 +01:00
Andreas Hocevar
f98f66c529
Make Select interaction work when there are multiple instances
2020-02-19 11:52:12 +01:00
Andreas Hocevar
eebb2cb9ae
Merge pull request #10672 from ahocevar/mousewheel
...
Nicer mousewheel and trackpad zooming
2020-02-17 18:27:03 +01:00
Andreas Hocevar
d93073f8d0
No trackpad mode for constrained resolutions
2020-02-16 10:05:32 +01:00
Andreas Hocevar
5150378983
Improve trackpad rebound behavior
2020-02-16 09:08:27 +01:00
Andreas Hocevar
f3ce8e23b4
Fractional zoom changes in WHEEL mode
2020-02-15 13:53:14 +01:00
Andreas Hocevar
ea5c91e19e
Revert "Merge pull request #9565 from dbrnz/v6.0.0-beta.7-branch"
...
This reverts commit 35569a8427 , reversing
changes made to 29a434314b .
2020-02-14 11:46:57 +01:00
Thomas Chandelle
33a8466913
Add API method abortDrawing and dispatch a DRAWABORT event
2020-02-13 17:22:39 +01:00
Olivier Guyot
8d4c3b2887
Draw / clearer variable names
2020-02-11 11:19:55 +01:00
Olivier Guyot
3c5d0f223e
Draw / fix map object in addToDrawing method
2020-02-10 16:55:35 +01:00
Otto Pellinen
02597229e3
Cleanup comments
2020-02-10 16:48:12 +01:00
Otto Pellinen
bc79d59811
Use private function addToDrawing_ in appendCoordinates
2020-02-10 16:48:12 +01:00
Otto Pellinen
f43bc8d122
Fix comment for appendCoordinates
2020-02-10 16:48:12 +01:00
Otto Pellinen
175695f877
Update function descriptions for clarity
2020-02-10 16:48:12 +01:00
Otto Pellinen
83c0a258e6
Separate appendCoordinates function from extend
2020-02-10 16:48:12 +01:00
Otto Pellinen
25a5e83910
Fix eslint errors
2020-02-10 16:48:12 +01:00
Otto Pellinen
12ce4cc82a
Add support for extending linear coordinates when drawing Polygons
2020-02-10 16:48:12 +01:00
Andreas Hocevar
c8e340a623
Rename variables now that trackpads are not special any more
2020-02-05 12:58:21 +01:00
David Brooks
77658e5750
Ensure changes to zoom wheel handling pass tests.
2020-02-05 11:24:48 +01:00
David Brooks
54bae0168f
Handle mouse wheel zoom events as if they've come from a trackpad.
2020-02-05 11:21:44 +01:00
mike-000
9d8609dd08
Modify and snap to circle in user coordinates
...
Correct modify interaction at center and at drawn circle circumference
Correct snap interaction at drawn circle circumference
Test circle geometry in a user projection
2019-12-13 16:40:39 +00:00
Andreas Hocevar
8e0a8114d7
Merge pull request #10340 from mike-000/patch-7
...
Draw circles and custom geometry in user coordinates
2019-12-11 10:07:12 +01:00
mike-000
2e544cb677
Circles and custom geometry in user coordinates
...
Pass the view projection to the geometry function so circles and other custom geometry can be given the expected shape/size in the view while being defined in user coordinates.
Add tests to draw circles in a user projection and along both axes
Draw regular polygon in a user projection
Draw box in a user projection
2019-12-10 19:47:37 +00:00
Andreas Hocevar
8911b96d3c
Do not preventDefault on pointerdown
2019-12-10 12:25:23 +01:00