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
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
Andreas Hocevar
10a6284b0b
Merge pull request #10332 from ahocevar/no-touch-action-css
...
Conditional default prevention instead of touch-action: none
2019-11-29 09:52:29 +01:00
Andreas Hocevar
e2c4670d6a
Merge pull request #10321 from greggian/touch-dragbox
...
Support touch events for DragBox interaction
2019-11-26 18:34:28 +01:00
Andreas Hocevar
88b8b2f7cb
Conditional default prevention instead of touch-action: none
2019-11-25 01:09:05 +01:00
Greg Gianforcaro
93d3ddb033
Fix modifying circle geometries
...
The Snap interaction may have altered the event coordinate, so Modify
should use the event coordinate whenever available.
Resolves #10316
2019-11-23 00:36:42 -05:00
Greg Gianforcaro
d99c77b992
Update DragBox jsdoc
...
- update the typedef to change the condition default value to {@link ol/events/condition~mouseActionButton}
- remove 'This interaction is only supported for mouse devices' comment
2019-11-22 16:35:31 -05:00
Greg Gianforcaro
2df22af3ca
Update DragBox to use only condition for filtering
...
- Remove mouseOnly and mouseActionButton hardcoded filters
- Default condition to mouseActionButton
2019-11-20 11:01:57 -05:00
Andreas Hocevar
3cca945002
Do not use Math.sign() to support very old browsers
2019-11-18 07:54:20 +01:00
Andreas Hocevar
643a3ad86b
tabindex without focux condition
2019-11-13 23:24:53 +01:00
Frederic Junod
51c9b56254
Remove all the sketch features in abortDrawing
2019-11-06 14:18:55 +01:00
Andreas Hocevar
ac50cc3460
New eslint config with no-multi-assign
2019-11-02 15:20:21 +01:00
TigerShark
e60dc93e0e
Make ol/interaction/Select#handleEvent return always true.
...
Previously it was returning true only if the event was a pointerMove
which prevented multiple Select objects with other event types from
working.
2019-10-23 17:30:56 -03:00
wirdehall
bd5510b62a
Updated docs for Select style.
...
Updated docs for Select style with new option of false.
2019-10-18 00:20:05 +02:00
wirdehall
a34e7ddd99
Should be able to ovveride defaultvalue of style in selection.
...
null or false should be able to prevent overriding the style.
As discussed here: https://github.com/openlayers/openlayers/issues/10131
2019-10-17 15:05:30 +02:00
Bobo Häggström
395b59c01e
Fix documentation for handleMoveEvent
...
This fixes #9814
2019-10-10 10:40:47 +02:00
Tim Schaub
80cf76e783
Merge pull request #10043 from tschaub/snap-geographic
...
User coordinates during snapping
2019-09-27 17:20:16 +02:00
Frederic Junod
f67476dd8f
Mark properties as nullable
2019-09-27 13:57:59 +02:00
Tim Schaub
07678d960a
User coordinates during snapping
2019-09-27 11:55:48 +02:00
Tim Schaub
6a5f6e4363
Merge pull request #10009 from tschaub/modified
...
Geometry editing with a user projection
2019-09-26 20:01:19 +02:00
flexJoly
391bae35f2
minor fixes
...
and keep original parameters in TranslateEvent the same
2019-09-26 19:30:24 +02:00
Tim Schaub
3c7b129106
User coordinates during drawing
2019-09-26 19:29:19 +02:00
flexJoly
180e1c86fc
Cache starting coordinates and add mapBrowserEvent to translateEvent
2019-09-26 18:48:51 +02:00
Tim Schaub
e0d24d3af0
User coordinates during modification
2019-09-26 18:46:55 +02:00
Tim Schaub
5d4e77151c
Handle event coordinate in the user projection
2019-09-26 17:24:58 +02:00
Tim Schaub
6ec69abdf6
Fewer type casts, minor changes
2019-09-26 16:15:08 +02:00
Tobias Kohr
347f5df32e
Fix some cosmetics on Select interaction
2019-09-25 17:34:26 +02:00
Tobias Kohr
2ccaed0ace
Add back Select interaction without Overlay
2019-09-25 16:37:28 +02:00
Tobias Kohr
38124d770b
Revert delete Select interaction commit 3838b68427
2019-09-25 16:37:28 +02:00
Tobias Kohr
8c4937170b
rename external methods to API names
2019-09-24 18:13:57 +02:00
Tobias Kohr
b1196e7601
fix linting
2019-09-24 17:58:56 +02:00
Tobias Kohr
d4c1589a01
Seperate internal and API methods for the map
2019-09-24 17:58:56 +02:00
Tim Schaub
3c38a38570
Merge pull request #9961 from KlausBenndorf/remove-select-interaction
...
SelectInteraction removal
2019-09-24 10:27:20 +02:00
Simon Seyock
3838b68427
Removed SelectInteraction
2019-09-24 10:12:30 +02:00
Tim Schaub
c03c359a20
Separate internal and API methods for the view
2019-09-21 11:30:14 -06:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
ahocevar
d416866108
Use pointer events everywhere
2019-08-31 23:40:11 +02:00
ahocevar
74e8e013cf
Use pepjs instead of our own pointerevent polyfill
2019-08-29 18:58:53 +02:00