MoonE
eea68e26ce
Merge pull request #12266 from MoonE/fix-legacy-build
...
Fix legacy build
2021-05-04 20:38:51 +02:00
Maximilian Krög
a235ecba95
Only delete build/legacy before building legacy
...
`transpile` deletes build/ol and `build-index` should delete index.js
2021-05-03 23:32:10 +02:00
Maximilian Krög
40f8e69675
Fix legacy build
...
The build process failed because webpack does not allow failed imports
when it is run as a module.
This detects modules with default exports and only generates import
statements for default exports where they are available.
2021-05-02 23:49:50 +02:00
MoonE
008ef24be9
Merge pull request #11952 from mike-000/patch-23
...
Draw 800km circles around both poles in Tissot example
2021-04-18 19:40:13 +02:00
MoonE
c5d6ea3f6a
Merge pull request #12227 from MoonE/fix-ie11-event-handling
...
Fix event handling for map in shadow root
2021-04-17 20:38:15 +02:00
Maximilian Krög
57e4e98757
Fix event handling with shadow-dom and ie11 event handling
2021-04-17 00:43:42 +02:00
MoonE
1554bc4cc2
Merge pull request #12216 from MoonE/zoomslider-layout
...
Fix ZoomSlider layout
2021-04-16 00:34:58 +02:00
Maximilian Krög
fdbfb4015f
Adjust zoomslider example layout
2021-04-16 00:29:09 +02:00
Maximilian Krög
f999f1a675
Fix zoomslider layout with padding
2021-04-16 00:29:06 +02:00
MoonE
ed5329e0cb
Merge pull request #12217 from MoonE/example-fix-build
...
Fix building of examples with latest copy-webpack-plugin
2021-04-16 00:28:16 +02:00
Maximilian Krög
85ea74a383
Fix building of examples with latest copy-webpack-plugin
2021-04-15 00:20:59 +02:00
MoonE
26c1377768
Merge pull request #12180 from MoonE/text-builder-geometry-widths
...
Fix rendering of MultiPolygon text styles
2021-04-06 21:40:56 +02:00
Maximilian Krög
4f962a651a
Fix rendering of MultiPolygon text styles
...
When overflow is false and some of a MultiPolygon's polygons are
outside the rendered extent the coordinates and geometryWidths arrays are
not kept in sync. Therefore the width check will filter on wrong data and
some texts may not be rendered.
2021-04-05 22:33:15 +02:00
Maximilian Krög
2b851724a6
Add regression test for multipolygon text rendering
2021-04-05 22:33:12 +02:00
MoonE
73392cc28e
Merge pull request #12181 from MoonE/webpack-fix-ie11
...
Build for ie11 again
2021-04-05 10:55:14 +02:00
Maximilian Krög
9d773c8f19
Build for ie11 again
2021-04-05 02:55:17 +02:00
MoonE
6f7b6c8141
Merge pull request #12028 from MoonE/overview-map-no-initial-target
...
Overview map no initial target
2021-04-03 23:15:30 +02:00
MoonE
85c5530fe1
Merge pull request #12175 from MoonE/examples-webpack-refresh-entries-before-compile
...
Refresh available examples before each compilation
2021-04-03 20:21:32 +02:00
Maximilian Krög
e6dacd07cd
Refresh available examples before each compilation
...
This makes it possible to pickup new examples and prevents compilation
errors when an example is removed. This is especially handy when switching
branches. Otherwise the dev server has to be restarted each time.
2021-04-03 18:18:28 +02:00
MoonE
ef86965456
Merge pull request #12080 from MoonE/cluster-source-min-distance
...
Add a minimum distance config to the cluster source
2021-03-04 22:28:30 +01:00
Maximilian Krög
e6b1d38cc3
Add units for, remove unnecessary html
2021-03-04 21:05:01 +01:00
Maximilian Krög
1c4f525ca9
Add a minimum distance config to the cluster source
2021-03-02 23:07:52 +01:00
MoonE
d09e303672
Merge pull request #12016 from MoonE/hitdetect-resolution-constant
...
Fix VectorLayer hitdetect problems
2021-02-27 20:50:31 +01:00
MoonE
085b6c99f4
Merge pull request #11845 from MoonE/draw-finish-condition-fix
...
Call finishCondition for all types for Draw interaction
2021-02-27 19:50:27 +01:00
Maximilian Krög
801dba4a38
Call Draw finishCondition for every type
2021-02-27 12:04:17 +01:00
Maximilian Krög
873020e1f8
Test Draw finishCondition for each type
2021-02-27 12:03:30 +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
Maximilian Krög
59c76334b1
Draw box if OverviewMap is added to an existing map
2021-02-15 00:45:46 +01:00
Maximilian Krög
022b8cdb62
Fix layout of overview map
...
The button should not change its position when the collapsed state changes.
The overview map had a somewhat larger padding at the bottom due to being an
inline-block element and the configured line-height of 1.5.
2021-02-15 00:12:52 +01:00
Maximilian Krög
73d288c191
Fix initially empty overview map
2021-02-15 00:12:52 +01:00
Maximilian Krög
0f64bb7459
Invalid size set when map is not added to document
...
Parsing of an empty string with parseFloat resulted in NaN.
2021-02-15 00:12:37 +01:00
MoonE
27b4539360
Merge pull request #12027 from MoonE/update-links-2
...
Update / fix links to external ressources
2021-02-13 14:56:43 +01:00
Maximilian Krög
363cc802d0
Update / fix links to external ressources
2021-02-13 01:32:54 +01:00
MoonE
7dda97e2f7
Merge pull request #11996 from MoonE/update-links
...
Update links to external resources
2021-02-12 21:33:12 +01:00
Maximilian Krög
dde6d6559c
Reduce work for hitdetection
...
Skip cloning of style if geometry is not in extent.
2021-02-10 21:27:25 +01:00
Maximilian Krög
99564671c1
Only create one canvas per icon
2021-02-10 21:18:59 +01:00
Maximilian Krög
de3f60861d
Fix hitdetection of icons with opacity < 1
...
Hit detection works by reading the pixel color, if the icon is not drawn
with full opacity it won't work.
2021-02-10 21:16:55 +01:00
Maximilian Krög
8645a3109d
Fix zIndex handling for hitdetection
...
getZIndex returns number|undefined, so Number conversion is unnecessary, but
undefined was converted to NaN instead of zero.
2021-02-10 01:04:21 +01:00
Maximilian Krög
5a7e4dfaf6
Add a constant for the hit-detection resolution
2021-02-10 01:04:19 +01:00
MoonE
261bba8359
Merge pull request #11995 from MoonE/vectorlayer-hitdetect-rounding
...
Fix hitdetect inaccuracy for VectorLayer's getFeatures
2021-02-09 19:59:05 +01:00
Maximilian Krög
8bd081d992
Add test for hitdetect function
2021-02-09 19:53:08 +01:00
Maximilian Krög
49c6ab716c
Fix VectorLayer hitdetect inaccuracy
...
Due to rounding the hitdetection may have been off by one pixel.
At map edge the pixel coordinate may exceed the map's dimensions if an
decimal pixel ratio is used, this is fixed by clamping to the canvas
dimensions.
2021-02-09 19:53:08 +01:00
MoonE
7fe54ffa37
Merge pull request #12001 from openlayers/dependabot/npm_and_yarn/karma-6.1.0
...
Bump karma from 6.0.3 to 6.1.0
2021-02-09 00:17:14 +01:00
MoonE
14efd22039
Merge pull request #11999 from openlayers/dependabot/npm_and_yarn/babel/preset-env-7.12.13
...
Bump @babel/preset-env from 7.12.11 to 7.12.13
2021-02-09 00:12:35 +01:00
MoonE
78b113c037
Merge pull request #12000 from openlayers/dependabot/npm_and_yarn/babel/core-7.12.13
...
Bump @babel/core from 7.12.10 to 7.12.13
2021-02-08 23:57:51 +01:00
MoonE
e13e7adcb9
Merge pull request #12003 from openlayers/dependabot/npm_and_yarn/puppeteer-7.0.1
...
Bump puppeteer from 5.5.0 to 7.0.1
2021-02-08 23:55:29 +01:00
MoonE
363f0d57d3
Merge pull request #12005 from openlayers/dependabot/npm_and_yarn/webpack-cli-4.5.0
...
Bump webpack-cli from 4.4.0 to 4.5.0
2021-02-08 23:47:39 +01:00
MoonE
360a983797
Merge pull request #12002 from openlayers/dependabot/npm_and_yarn/marked-2.0.0
...
[Security] Bump marked from 1.2.8 to 2.0.0
2021-02-08 23:29:27 +01:00
Maximilian Krög
0d5d346bcd
Update links to external resources
2021-02-08 19:40:05 +01:00
MoonE
8616aa9320
Merge pull request #11992 from MoonE/measure-example
...
Improve measure example ux
2021-02-08 19:23:23 +01:00
MoonE
8c6dd4c244
Merge pull request #11974 from mike-000/patch-26
...
Fix polyfill inconsistencies
2021-02-07 14:36:22 +01:00
Maximilian Krög
7df38575b8
Improve measure example ux
...
- Pass click events on measure tooltips through to the map
- Put the tooltip for the currently drawn geometry on top
- Disable text selection in the tooltips so clicking to draw does not select
2021-02-06 18:50:35 +01:00
MoonE
c4099e6786
Merge pull request #11965 from mike-000/patch-24
...
Handle view rotation in d3 Integration example
2021-01-30 23:32:54 +01:00
MoonE
4538812bc3
Merge pull request #11873 from mike-000/patch-20
...
Update Mapbox-gl Layer example to mapbox-gl-js version 1.13.0 and add note about why an old version is used
2020-12-30 21:24:35 +01:00
MoonE
7778e373a7
Merge pull request #11865 from mike-000/patch-19
...
Use ol/array#includes instead of Array.prototype.includes()
2020-12-30 00:48:02 +01:00
MoonE
579db0138f
Merge pull request #11871 from MoonE/fix-legacy-build-for-ie11
...
Fix examples and build for ie11
2020-12-29 23:55:44 +01:00
Maximilian Krög
358d6736d1
Make examples work with ie11
2020-12-29 23:04:15 +01:00
MoonE
c9c71cbbcb
Merge pull request #11859 from MoonE/no-duplicate-postrender-events
...
Do not fire duplicate postrender events
2020-12-24 10:24:49 +01:00
Maximilian Krög
17659b9a80
Do not fire duplicate postrender events
2020-12-24 02:25:42 +01:00
MoonE
1a952e7a41
Merge pull request #11858 from MoonE/apidoc-vectoreventtype
...
Correct documented event names for VectorSourceEvent
2020-12-23 12:05:11 +01:00
Maximilian Krög
efdd885571
Correct documented event names for VectorSourceEvent
2020-12-23 00:02:19 +01:00
MoonE
d151c588a8
Merge pull request #11844 from MoonE/style-expressions-error-message
...
Fix Style expressions error message
2020-12-19 19:13:21 +01:00
Maximilian Krög
d2027c1640
Get value type only once
2020-12-19 14:12:37 +01:00
Maximilian Krög
8363e66d1e
Fix error message for assertArgsOdd failure
2020-12-19 14:12:37 +01:00
MoonE
bac6f4f6e8
Merge pull request #11828 from openlayers/dependabot/npm_and_yarn/ol-mapbox-style-6.2.1
...
Bump ol-mapbox-style from 6.1.4 to 6.2.1
2020-12-15 00:01:37 +01:00
MoonE
21eeb1a56d
Merge pull request #11830 from openlayers/dependabot/npm_and_yarn/jsdoc-plugin-typescript-2.0.6
...
Bump jsdoc-plugin-typescript from 2.0.5 to 2.0.6
2020-12-14 23:49:13 +01:00
MoonE
b4c204ad27
Merge pull request #11829 from openlayers/dependabot/npm_and_yarn/typescript-4.1.3
...
Bump typescript from 4.1.2 to 4.1.3
2020-12-14 23:44:35 +01:00
MoonE
0f1fd5854b
Merge pull request #11833 from openlayers/dependabot/npm_and_yarn/rollup-2.35.0
...
Bump rollup from 2.34.2 to 2.35.0
2020-12-14 23:36:10 +01:00
MoonE
f588506bd9
Merge pull request #11834 from openlayers/dependabot/npm_and_yarn/copy-webpack-plugin-6.4.0
...
Bump copy-webpack-plugin from 6.3.2 to 6.4.0
2020-12-14 23:27:40 +01:00
MoonE
ca39394817
Merge pull request #11832 from openlayers/dependabot/npm_and_yarn/babel/preset-env-7.12.10
...
Bump @babel/preset-env from 7.12.7 to 7.12.10
2020-12-14 23:24:44 +01:00
MoonE
08a2d2ef8a
Merge pull request #11835 from openlayers/dependabot/npm_and_yarn/sinon-9.2.2
...
Bump sinon from 9.2.1 to 9.2.2
2020-12-14 23:16:30 +01:00
MoonE
f17fa23fd4
Merge pull request #11831 from openlayers/dependabot/npm_and_yarn/marked-1.2.6
...
Bump marked from 1.2.5 to 1.2.6
2020-12-14 23:14:20 +01:00
MoonE
d6dc7c4883
Merge pull request #11827 from openlayers/dependabot/npm_and_yarn/babel/core-7.12.10
...
Bump @babel/core from 7.12.9 to 7.12.10
2020-12-14 23:08:22 +01:00
MoonE
797d2cc5d1
Merge pull request #11821 from MoonE/draw-finish-condition
...
Call the finishCondition when drawing points / circles
2020-12-11 20:51:12 +01:00
Maximilian Krög
bd4622940e
Call the finishCondition when drawing points / circles
2020-12-11 00:29:30 +01:00
MoonE
ea91d41be9
Merge pull request #11803 from MoonE/modify-fix-vertex-insertion
...
Modify fix vertex insertion
2020-12-06 16:47:41 +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
Maximilian Krög
190b20ebce
Add vertex insertion test for modify interaction
2020-12-06 15:43:14 +01:00
MoonE
1dddb3f58a
Merge pull request #11783 from MoonE/hitdetect-indexes
...
Cache hit detect indexes and check closest pixels first.
2020-12-03 21:24:35 +01:00
Maximilian Krög
23dc768c2e
Order callback calls by distance to click position
...
All callback calls for hits with a tolerance > 0 are queued and
called ordered by distance after all hits are detected.
2020-12-01 23:21:59 +01:00
Maximilian Krög
4546eff66e
Also use hitTolerance to select tiles to search
2020-12-01 20:21:15 +01:00
Maximilian Krög
cde2dac19f
Skip executor groups when tile does not contain coordinates
2020-12-01 20:21:13 +01:00
Maximilian Krög
c076d273e7
Cache hit detect indexes and check closest pixels first.
2020-12-01 20:19:58 +01:00
Maximilian Krög
2ebe90f9d3
Add transition option to OSM and CartoDB sources, document default
2020-11-07 22:37:10 +01:00
Maximilian Krög
b3968a4219
Change textpath tests to work with changed method / return.
2020-11-05 22:35:54 +01:00
Maximilian Krög
b6ee7084c9
Fix stroke for text along path wiht negative x scale
2020-11-05 22:35:54 +01:00
Maximilian Krög
03f6cbb5a8
Draw substrings on straight line in one operation
2020-11-05 22:35:54 +01:00
Maximilian Krög
528833b05b
Don't iterate each chracter if entire string fits in single segment
2020-11-05 22:35:54 +01:00
Maximilian Krög
7660f3c522
Determine orientation by actual text start and end x
2020-10-20 22:46:04 +02:00
Maximilian Krög
a5202523b9
Make webpack dev server run with current version
2020-10-17 21:11:31 +02:00
Maximilian Krög
187a216379
Do not draw empty text styles
...
This fixes a rendering/flicker issue when an empty text style is decluttered
together with an image style.
2020-10-05 12:20:04 +02:00
Maximilian Krög
fc67d8302b
Add charset to the examples html below the map
2020-10-03 21:31:38 +02:00
Maximilian Krög
65fc3ca2ca
Improved performance when removing feature with only one Select
2020-09-28 01:00:07 +02:00
Maximilian Krög
f63d0741b9
Add rendering test for multipoint with icon and text
2020-09-27 21:13:27 +02:00
Maximilian Krög
0996b37fe7
Fix end world calculation if projection is not symmetric
2020-09-17 00:12:15 +02:00
Maximilian Krög
2a81a7a236
Add rendering test for multi world
2020-09-17 00:12:15 +02:00
Maximilian Krög
85499d7daf
Only draw visible worlds
2020-09-14 23:41:04 +02:00
Maximilian Krög
66ca8fbc13
Fix error when text placement is 'line' for point geometry
2020-09-12 21:30:28 +02:00
Maximilian Krög
fd28d5bb3d
Simplify method signature for appendFlatPointCoordinates
2020-09-12 20:54:53 +02:00
Maximilian Krög
9ca9e73374
Declare variable when used
2020-09-12 20:54:53 +02:00