Andreas Hocevar
fda93cee23
Updates for TypeScript v4
2020-08-25 13:03:58 +02:00
mike-000
926d740a8e
fix syntax of return with typecast
2020-07-20 19:24:56 +01:00
mike-000
f9f90ea766
move type cast to tryReadFeatures_
2020-07-20 19:16:49 +01:00
mike-000
9fb45aa2d2
fix prettier
2020-07-20 17:06:52 +01:00
mike-000
21f4d4998b
type casting
2020-07-20 17:02:38 +01:00
mike-000
1812ce8b28
update source and fire event only if features added
2020-07-20 16:08:00 +01:00
Michał Zielański
3d9dfe2654
By modifying the common vertex, not all geometries were changed when the geometries were aggregated in the collection
2020-06-29 10:48:17 +02:00
mike-000
342b69fe92
fix prettier
2020-06-18 15:42:48 +01:00
mike-000
3acb0b28de
Add condition option
2020-06-18 15:17:55 +01:00
Andreas Hocevar
dbe080d362
Rename chain function to all
2020-06-13 08:40:00 +02:00
Andreas Hocevar
3de2ea0624
More convenience with condition chaining
2020-06-13 08:39:59 +02:00
Andreas Hocevar
aa5de5db60
Use drag-pan default condition with onFocusOnly
2020-06-13 08:39:59 +02:00
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