Commit Graph

12528 Commits

Author SHA1 Message Date
Andreas Hocevar
a2ae18d89a Fix private scope type issues in format/KML 2020-04-15 10:53:24 +02:00
Andreas Hocevar
f4d64700ef Fix private scope type issues in controls 2020-04-15 10:53:24 +02:00
Andreas Hocevar
b0f20d6bd6 Use imports for enum types 2020-04-15 10:53:23 +02:00
Frédéric Junod
4bd191755f Merge pull request #10902 from fredj/readFromDocument
Move readFromDocument implementation to the base class
2020-04-09 10:20:51 +02:00
Andreas Hocevar
cb8fb147ec Do not scroll page during feature translation 2020-04-07 08:53:54 +02:00
Frederic Junod
484f45fc1b Move readFromDocument implementation to the base class
All the child classes have the same code; move to the base class
2020-04-07 07:26:38 +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
Andreas Hocevar
4330697ed2 Fix focus condition 2020-04-06 11:57:10 +02:00
Andreas Hocevar
4a5e8528f9 Merge pull request #10878 from ahocevar/fix-freehand
Avoid page scrolling when freehand drawing on mobile
2020-04-05 22:30:54 +02:00
Andreas Hocevar
7dd6d72093 Avoid page scrolling when freehand drawing on mobile 2020-04-05 22:02:19 +02:00
Andreas Hocevar
79ccef7bf6 Do not append hit canvas to document body 2020-04-05 09:55:09 +02:00
mike-000
a1dd9cacf7 fix return type 2020-04-04 14:00:20 +01:00
Frédéric Junod
d8cbda18a7 Merge pull request #10840 from fredj/remove_inheritDoc
Remove inherit doc
2020-04-04 14:06:43 +02:00
Andreas Hocevar
77763991dc Merge pull request #10537 from mike-000/patch-3
Correct resolution used for scale bar and add dpi option
2020-04-04 09:53:54 +02:00
Andreas Hocevar
58b92aca6f Merge pull request #10463 from pjsg/fix_triangulation
Fix issue with reprojection and double drawing pixels.
2020-04-04 09:44:28 +02:00
philip
4e81cf02ee Remove the unused import 2020-04-03 21:58:51 +00:00
philip
665a8275f6 It appears that Safari and Chrome behave differently when doing a drawImage
with coordinates that are outside the source. Chrome appears to draw the
piece of the image that is within the area specified on the drawImage and within
the source. Safari bails and draws nothing if (I think) any of the corners are outside
the source.
2020-04-03 21:54:42 +00:00
mike-000
fb84426411 use constant for default dpi 2020-04-03 17:17:11 +01:00
mike-000
6aa953b571 base minWidth on default dpi & remove setMinWidth 2020-04-03 17:11:25 +01:00
Andreas Hocevar
b80e3a3a41 Merge pull request #10429 from mike-000/patch-4
Option to disable image smoothing for Tile layer sources (including reprojected sources)
2020-04-03 15:41:51 +02:00
Olivier Guyot
22c02e7f35 Merge pull request #10865 from jahow/view-animate-updatesize-fix
View / avoid solving constraints related to map size during animation
2020-04-03 13:55:54 +02:00
Frederic Junod
dda7342ea7 Remove all inheritDoc tags from src/ol/renderer 2020-04-03 09:08:09 +02:00
Frederic Junod
9e862c1111 Remove all inheritDoc tags from src/ol/ 2020-04-03 08:20:49 +02:00
Frederic Junod
d15ec1c12c Remove all inheritDoc tags from disposeInternal functions 2020-04-03 08:10:41 +02:00
Frederic Junod
a695ce8616 Remove all inheritDoc tags from src/ol/render 2020-04-03 07:56:58 +02:00
Frederic Junod
15d36a22f0 Remove all inheritDoc tags from src/ol/layer 2020-04-03 07:56:58 +02:00
Frederic Junod
506aa7aae7 Remove all inheritDoc tags from src/ol/style 2020-04-03 07:56:58 +02:00
Frederic Junod
615ae71a8f Remove all inheritDoc tags from src/ol/source 2020-04-03 07:56:58 +02:00
Frederic Junod
da8ef43db7 Remove all inheritDoc tags from src/ol/interaction 2020-04-03 07:52:51 +02:00
Frederic Junod
706dd3c87c Remove all inheritDoc tags from src/ol/control 2020-04-03 07:52:51 +02:00
Frederic Junod
6522e6a17f Pass the id field name as a new param 2020-04-03 07:52:51 +02:00
Frederic Junod
d7c83e4651 Remove all inheritDoc tags from src/ol/format 2020-04-03 07:52:51 +02:00
Frederic Junod
f392f6b6bb Remove all inheritDoc tags from src/ol/geom 2020-04-03 07:52:51 +02:00
philip
a308e9ee13 Merge remote-tracking branch 'origin/master' into fix_triangulation 2020-04-02 22:58:59 +00:00
mike-000
dfcc649c59 Merge branch 'master' into patch-4 2020-04-02 22:37:36 +01:00
mike-000
b866a447c2 assign tile source context options to context 2020-04-02 22:28:09 +01:00
mike-000
5c848ac1b9 make context options available to renderer 2020-04-02 20:10:07 +01:00
mike-000
0ba659b6af make context options available to renderer 2020-04-02 20:09:58 +01:00
Geert Premereur
2d7e55e26a Small code cleanup
drop superfluous if.
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
Geert Premereur
10c7f08fa4 Select style multiple select interactions removed
This fixes issue 10486 by removing the event listeners when an
interaction is removed from a map.
2020-04-02 20:00:37 +02:00
Tim Schaub
c196f2f7b0 Merge pull request #10531 from pjsg/fix_image_reproj
Dynamically chose the number of subdivisions based on the size of the Image to reproject
2020-04-02 11:50:30 -06:00
mike-000
1cd4d37c45 change option name to imageSmoothing 2020-04-02 18:44:07 +01: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
philip
72907566bb Add comment to explain calculation. 2020-04-02 14:14:13 +00:00
mike-000
e2ac566c05 Correct resolution used for scale. Add dpi option.
Also add setDpi and setMinWidth methods

Add Print to scale example
2020-04-02 14:59:54 +01:00
Olivier Guyot
32321e381c View / avoid solving constraints related to map size change during anim 2020-04-02 14:22:47 +02:00
Andreas Hocevar
5e8102bbd1 Merge pull request #10850 from ahocevar/enum-docs
API docs for enums
2020-04-01 11:47:55 +02:00
Edward Nash
2b863793d0 Perform auto-pan when adding an Overlay to a Map
* Auto-pan settings currently only activate when the position of the
   Overlay is set and the Overlay is already on a Map.

 * The consequence of this is that creating an Overlay with position
   set and then adding to a Map results in no auto-pan being performed -
   it is necessary to first create the Overlay, then add to a Map and
   finally set the position in order for the Map to auto-pan.

 * This commit changes this behaviour so that the auto-pan settings are
   also considered when the map property of the Overlay is set and not
   only when the position property is set, leading to a more intuitive
   behaviour.

 * Fixes Issue #10843
2020-04-01 06:50:01 +02:00
Andreas Hocevar
2401e0af00 Merge pull request #10646 from mike-000/patch-1
Write fill and outline in KML PolyStyle
2020-03-31 23:22:15 +02:00