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
Logan BOUNET
87d80be915
Add minArea typedef and ctor prop in DragZoom
2019-07-03 10:29:13 -04:00
Kai Volland
b6b91abc27
Fixes typing issue in DragPan.js
2019-06-21 13:28:56 +02:00
André Garneau
7817cf31c6
Changes following code review
...
Add a type for FilterFunction and add tests for filter option.
2019-06-04 17:45:28 -04:00
André Garneau
b42ee8ca0f
Add filter function to translate interaction
...
Add a filter function to the translate interaction. This filter is similar to the one present in the select interaction options and provides the ability to dynamically filter which features to include in the translate interaction. Adding the existing "features" options allows further filtering to take place. In this case the filter is first applied, and features that are passing the filtering need to be present in the "features" options to be further kept. The default filter function always return true (no filtering).
2019-05-31 14:51:13 -04:00
Stéphane Brunner
889b6a9f43
Removes unnecessary type cast
2019-05-27 11:34:33 +02:00
Frederic Junod
ec811bfa1f
Add primaryAction condition to DragPan interaction
2019-05-22 15:21:17 +02:00
Tim Schaub
0f998b4522
Link to the extent event instead of the extent event type
2019-04-28 16:36:33 -06:00
ahocevar
86fac0937b
Set the interacting flag on pointerdrag instead of pointerdown
2019-04-19 09:42:12 -07:00
Frederic Junod
238fbca650
Add new maxDelta property to MouseWheelZoom constructor
2019-04-08 15:02:21 +02:00
ahocevar
070c1ec029
Resolve constraints for View#animate() API calls
2019-04-05 17:13:55 +02:00
Olivier Guyot
0f73f16cfa
View / apply constraints when an interaction starts
...
Previously, an interaction could begin while target values
(center/resolution) were out of the allowed range, causing a
glitch where the view zoom/position would jump suddenly.
2019-04-05 11:55:35 +02:00