Andreas Hocevar
9b31deb38f
Simplify API and code
2020-12-06 16:51:14 +01:00
Andreas Hocevar
db6eb040d2
Improve documentation
2020-12-06 16:51:14 +01:00
Andreas Hocevar
314724d880
Add geometries property to vertex feature
2020-12-06 16:51:14 +01:00
Andreas Hocevar
ec9dde88f9
Add features property to vertex feature
2020-12-06 16:51:14 +01:00
Andreas Hocevar
6874bfaaef
Report features actually being modified, not all
2020-12-06 16:51:13 +01:00
Andreas Hocevar
b3bcfb5b41
Modify with hit detection support
2020-12-06 16:51:13 +01:00
Maximilian Krög
c4dd6e6b04
Fixes Modify vertex insertion with duplicate segments
...
If one feature has duplicate segments it prevented insertion for other
features with the same segment.
2020-12-06 15:43:18 +01:00
Andreas Hocevar
950894c542
Merge pull request #11780 from M393/dragbox-add-cancel-event
...
Add a cancel event to the DragBox interaction
2020-11-27 23:53:54 +01:00
Maximilian Krög
b93a57156c
Add a cancel event to the dragbox interaction
2020-11-27 15:02:39 +01:00
mike-000
c0875e38e7
Restore Mode.CIRCLE
2020-11-27 11:42:51 +00:00
mike-000
919c711756
New function createOrUpdateCustomSketchLine_
2020-11-25 12:06:34 +00:00
mike-000
8898d540fa
New function createOrUpdateCustomSketchLine_
...
New function for duplicated code handling sketch line for custom polygons
2020-11-25 11:59:32 +00:00
mike-000
f8df533cb0
Use Mode.LINE_STRING for Circle geometries
...
Make predefined geometry functions compatible with removeLastPoint
Add undo to example
Make geometry function for Star compatible with use of removeLastPoint
Additional createRegularPolygon tests
2020-11-24 10:39:28 +00:00
Andreas Hocevar
9885b79509
Document that snapTolerance must be greater than 0
2020-11-18 10:44:41 +01:00
Andreas Hocevar
db180c555e
Merge pull request #11718 from ahocevar/draw-extend
...
Initialize sketch point on Draw#extend()
2020-11-11 09:40:42 +01:00
mike-000
a6860118c7
Support formats that read ArrayBuffer sources
...
Drag-and-Drop support for formats that read arraybuffer sources
Add TextDecoder to polyfills
Add custom Drag-and-Drop examples for KMZ and MVT
Add sample download and KML styles option to existing example
Test arraybuffer and constructed formats
2020-11-09 17:02:31 +00:00
Andreas Hocevar
df261f6e0f
Initialize sketch point on Draw#extend()
2020-11-05 18:27:40 +01:00
Andreas Hocevar
48f357d518
Visual feedback for removeLastPoint() on touch devices
2020-10-29 22:06:51 +01:00
Andreas Hocevar
23a544aa30
Only draw when one pointer is active
2020-10-29 20:00:12 +01:00
Andreas Hocevar
bfeeba2194
Merge pull request #11590 from sbrunner/export-type
...
Export all the Event sub class
2020-10-17 20:38:54 +02:00
Andreas Hocevar
aa69c5d3aa
Merge pull request #11597 from MoonE/select-interaction-performance
...
Improved performance when removing feature with only one Select
2020-09-30 13:09:49 +02:00
Maximilian Krög
6a5c3bde62
Do not insert more than one point per geometry at once
2020-09-29 10:52:35 +02:00
Maximilian Krög
edb3b5f4fd
The vertex is always the same, no need to store it with the segment
2020-09-29 10:52:35 +02:00
Maximilian Krög
65fc3ca2ca
Improved performance when removing feature with only one Select
2020-09-28 01:00:07 +02:00
Stéphane Brunner
23e5c7ced8
Export all the Event sub class
...
Actually only some are exported
This is useful to type the received events
2020-09-25 13:15:49 +02:00
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