Maximilian Krög
bf33bd0703
Add Modify test for identical line segments of same geometry
2020-09-29 10:52:35 +02: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
Andreas Hocevar
33ce206bab
Get rid of MapBrowserPointerEvent
2020-05-10 16:54:34 +02:00
Andreas Hocevar
8ba051add3
Fix private scope issues in ol/interaction/*
2020-04-15 10:53:25 +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
Geert Premereur
ad77143417
Experiment with test impact further (3)
2020-04-02 20:05:15 +02:00
Geert Premereur
cf1191505e
Experiment with test impact further (2)
2020-04-02 20:05:15 +02:00
Geert Premereur
3909938a70
Experiment with test impact further
2020-04-02 20:05:15 +02:00
Geert Premereur
e9e75cd8af
temporarily disable test to observe impact
2020-04-02 20:05:14 +02:00
Geert Premereur
dc957ec104
CK-240: fix lint errors
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
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
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
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
Otto Pellinen
0b3bd0721e
Add dedicated tests for appendCoordinates
2020-02-10 16:48:12 +01:00
Andreas Hocevar
cc21f92bdb
Restore test coverage, fix tests
2020-02-05 13:03:21 +01:00
David Brooks
03fcf1ca70
Get all mouse wheel tests passing ( #9564 ).
2020-02-05 11:27:10 +01:00
David Brooks
77658e5750
Ensure changes to zoom wheel handling pass tests.
2020-02-05 11:24:48 +01:00
Matt Walker
eeec2b9e7d
Lint: remove unused imports
2020-01-13 11:32:40 +00:00
Matt Walker
5ce532e3e4
Mock PointerEvent in tests to include target
...
The `target` Event property is readonly as it is set internally when an
event is dispatched. This change uses a plain object with the essential
properties that a PointerEvent has which is sufficent for map event handling
2020-01-13 10:46:40 +00:00
mike-000
9d8609dd08
Modify and snap to circle in user coordinates
...
Correct modify interaction at center and at drawn circle circumference
Correct snap interaction at drawn circle circumference
Test circle geometry in a user projection
2019-12-13 16:40:39 +00: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
Greg Gianforcaro
6bada6ab98
Add test modifying circle with snap enabled
2019-11-23 16:11:27 -05:00
Frédéric Junod
9478cb1945
Merge pull request #10283 from fredj/targetNotEditable
...
Use the originalEvent in the targetNotEditable condition
2019-11-12 08:24:20 +01:00
Frederic Junod
fc7cb5cd51
Use the originalEvent in the targetNotEditable condition
2019-11-11 14:41:39 +01:00
Frederic Junod
51c9b56254
Remove all the sketch features in abortDrawing
2019-11-06 14:18:55 +01:00
Tim Schaub
7c8b2215d4
Remove unused code
2019-09-29 07:05:48 -06:00
Tim Schaub
d2b25533c2
Use the same spelling used elsewhere
2019-09-29 07:37:45 -05:00
Tim Schaub
3b02f5597e
Remove called assert extension
2019-09-28 18:55:38 +02:00
Tim Schaub
a996d62d46
Test snap with geographic coordinates
2019-09-27 14:12:10 +02:00
Tim Schaub
53e2f432e7
Confirm zoomByDelta calls view.animate()
2019-09-26 18:30:16 +02:00
Tim Schaub
5d4e77151c
Handle event coordinate in the user projection
2019-09-26 17:24:58 +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
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
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
ahocevar
070c1ec029
Resolve constraints for View#animate() API calls
2019-04-05 17:13:55 +02:00
Olivier Guyot
405e206717
View / better names for getValid* and applyParameters_ methods
2019-02-22 15:04:54 +01:00
Olivier Guyot
433bccd207
Linting and fixes for unit tests
2019-02-22 15:01:30 +01:00
Olivier Guyot
e023c144bb
View / add adjust* methods to manipulate the view more easily
...
API changes:
* (breaking) the `rotate` method is gone
* the `adjustRotation`, `adjustResolution` and `adjustZoom` methods are now
available and allow using an anchor.
This means interactions do not have to do the anchor computation themselves
and this also fix anchor computation when constraints must be applied.
2019-02-22 15:01:30 +01:00