Commit Graph

1392 Commits

Author SHA1 Message Date
Andreas Hocevar
0da0c903a0 MapBrowserEvent#preventDefault() behaves the same as with native events 2021-04-05 10:05:32 +02:00
Simon Seyock
2b57584180 fix prettier linting problems 2021-03-09 09:08:27 +01:00
Maximilian Krög
801dba4a38 Call Draw finishCondition for every type 2021-02-27 12:04:17 +01:00
Maximilian Krög
288fd0b74c Improve Draw type to mode conversion
Throw error if Draw is configured with an invalid type.
2021-02-27 11:12:24 +01:00
Andreas Hocevar
7789bc5b15 Report all features being modified 2021-02-08 20:44:19 +01:00
Andreas Hocevar
a7b92cba4d Merge pull request #11978 from ahocevar/snap-delta-optional
Add snapToPointer option
2021-02-06 12:57:17 +01:00
Andreas Hocevar
d31abd2f77 Sensible defaults 2021-02-06 12:04:31 +01:00
Simon Seyock
2ad5789797 Add descriptions for properties. 2021-02-04 18:19:33 +01:00
Simon Seyock
8facb252f1 Replace google closure syntax = with brackets around name 2021-02-03 14:06:02 +01:00
Andreas Hocevar
bf90ce2789 Add snapToPointer option 2021-02-03 10:52:10 +01:00
Tim Schaub
19bb3f8c88 Consistent use of Array and Object types 2021-02-02 13:53:10 -07:00
Simon Seyock
f590cb3473 Harmonize jsdoc 2021-02-02 12:14:56 +01:00
Andreas Hocevar
99dd55920e Restore stopClick functionality 2021-01-07 22:34:21 +01:00
Maximilian Krög
bd4622940e Call the finishCondition when drawing points / circles 2020-12-11 00:29:30 +01:00
Andreas Hocevar
6c6b559ce4 Merge pull request #11817 from greggian/select-stop-propagation
stopPropagation support for PluggableMap
2020-12-10 16:15:25 +01:00
Greg Gianforcaro
9c2b0677fa stopPropagation/preventDefault on originalEvent
Move stopPropagation/preventDefault to directly target the
originalEvent rather than the mapBrowserEvent.
2020-12-09 11:42:53 -05:00
Greg Gianforcaro
92f93e8e94 Resolve some test failures 2020-12-09 01:17:19 -05:00
Andreas Hocevar
c557b2e7bb Remove unnecessary line that breaks drawing with multi-touch 2020-12-08 18:53:17 +01:00
Andreas Hocevar
ecb9778fbf Set sketch cursor to last appended coordinate 2020-12-08 16:16:14 +01:00
Andreas Hocevar
0bd04eafe0 Pass around pixels/coords to fix appendCoordinates 2020-12-08 14:52:36 +01:00
Andreas Hocevar
ec53d4fc57 Remove no longer needed checks for coordinates.length 2020-12-08 14:52:35 +01:00
Andreas Hocevar
651c1aa6c4 Fix removeLastPoint when removing last point 2020-12-08 14:52:35 +01:00
Andreas Hocevar
b6eb429f77 Always drag using pointer location, not vertex location 2020-12-06 18:11:15 +01:00
Andreas Hocevar
0e15720f2e Make use of the Modify interaction's overlay source 2020-12-06 17:02:04 +01:00
Andreas Hocevar
44e054d528 When hit detected, only consider hit node 2020-12-06 16:51:15 +01:00
Andreas Hocevar
630a72f222 Fix API docs
Co-authored-by: MoonE <maxi_kroeg@web.de>
2020-12-06 16:51:15 +01:00
Andreas Hocevar
1473731854 Use existing collection 2020-12-06 16:51:15 +01:00
Andreas Hocevar
18d15879bf Reuse featuresBeingModified_ collection 2020-12-06 16:51:15 +01:00
Andreas Hocevar
128d20abf3 Simpler API with hitDetection option 2020-12-06 16:51:15 +01:00
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