Commit Graph

13518 Commits

Author SHA1 Message Date
Tim Schaub
a7684d8fbf Avoid colliding user variables with internal names 2021-02-11 07:38:46 -07:00
Tim Schaub
ebc8864680 Merge pull request #12022 from tschaub/expression-parsing
Throw when WebGL style parsing encounters an unexpected type
2021-02-11 06:10:23 -07:00
Tim Schaub
c351bcabdf Merge pull request #12020 from tschaub/delete-buffer
Fix WebGL buffer deletion
2021-02-11 06:07:22 -07:00
Andreas Hocevar
0f953193ea Merge pull request #12018 from ahocevar/only-render-image-when-needed
Only render vector tile image when needed
2021-02-11 08:35:57 +01:00
Tim Schaub
c9a3b3bf92 Throw when parsing encounters an unexpected type 2021-02-10 19:18:55 -07:00
Tim Schaub
f121db1ad8 Fix buffer deletion 2021-02-10 18:39:45 -07:00
Tim Schaub
423d1bdcdb Add method for getting a tile range from a coord and zoom level 2021-02-10 18:04:59 -07:00
Tim Schaub
79330e2aeb Maintain an extent array for reuse 2021-02-10 18:04:27 -07: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
Andreas Hocevar
2d8e7d87ba Always use same order for renderedTiles 2021-02-10 21:24:06 +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
Andreas Hocevar
ea961c859c Only render vector tile image when needed 2021-02-10 19:59:39 +01:00
Tim Schaub
98ac74e0bf Merge pull request #12012 from geraldo/cartodb-fix-account
Fix documentation for account parameter in ol/source/CartoDB
2021-02-09 21:09:31 -07: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
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
geraldo
2d33f99431 Fix documentation for account parameter in ol/source/CartoDB 2021-02-09 16:36:40 +01:00
Andreas Hocevar
56cea5f880 Merge pull request #11990 from ahocevar/remove-vectortile-image-mode
Remove renderMode: 'image' for vector tile layers
2021-02-09 16:36:27 +01:00
Andreas Hocevar
386aab6190 Merge pull request #12007 from ahocevar/modifystart-features
Report all features being modified
2021-02-09 16:32:15 +01:00
Tim Schaub
e194675582 Merge pull request #11991 from simonseyock/wkt-format-types
Fix some typings in format and format/WKT
2021-02-09 07:59:47 -07:00
Andreas Hocevar
7789bc5b15 Report all features being modified 2021-02-08 20:44:19 +01:00
Maximilian Krög
0d5d346bcd Update links to external resources 2021-02-08 19:40:05 +01:00
Andreas Hocevar
94bfe77c21 Merge pull request #11987 from ahocevar/vector-opacity
Respect opacity for vector instructions
2021-02-06 21:30:50 +01:00
Andreas Hocevar
3eb5dcca68 Merge pull request #11989 from mike-000/patch-27
Correct pixel ratio descriptions
2021-02-06 18:41:40 +01:00
Andreas Hocevar
ebc3631341 Also apply layer opacity to decluttered content 2021-02-06 15:21:39 +01:00
Andreas Hocevar
45ba5792cc Remove renderMode: 'image' for vector tile layers 2021-02-06 14:57:21 +01:00
mike-000
1c47d268fb Correct pixel ratio description 2021-02-06 13:49:48 +00:00
mike-000
2b52a12453 Correct pixel ratio description 2021-02-06 13:45:13 +00:00
Andreas Hocevar
6fe0d6121c Warn when map container's width or height are zero 2021-02-06 14:18:23 +01:00
Andreas Hocevar
4d5d80cb27 Respect opacity for vector instructions 2021-02-06 13:38:14 +01:00
Andreas Hocevar
a7b92cba4d Merge pull request #11978 from ahocevar/snap-delta-optional
Add snapToPointer option
2021-02-06 12:57:17 +01:00
Andreas Hocevar
d31abd2f77 Sensible defaults 2021-02-06 12:04:31 +01:00
Simon Seyock
2ad5789797 Add descriptions for properties. 2021-02-04 18:19:33 +01:00
Simon Seyock
bd489fec4c Fix strict null checking for format/WKT
NOTE: `EMPTY` may only occur immediately after geometry type
2021-02-03 22:43:56 +01:00
Simon Seyock
8facb252f1 Replace google closure syntax = with brackets around name 2021-02-03 14:06:02 +01:00
Simon Seyock
c15faa19fc enable check-types 2021-02-03 13:59:34 +01:00
Andreas Hocevar
bf90ce2789 Add snapToPointer option 2021-02-03 10:52:10 +01:00
Tim Schaub
19bb3f8c88 Consistent use of Array and Object types 2021-02-02 13:53:10 -07:00
Simon Seyock
7a155a00e7 Replace nested types by typedefs 2021-02-02 18:03:12 +01:00
Simon Seyock
808868ad1f Fixed some jsdoc issues. 2021-02-02 12:15:30 +01:00
Simon Seyock
f590cb3473 Harmonize jsdoc 2021-02-02 12:14:56 +01:00
Tim Schaub
aace9ea711 Merge pull request #11948 from simonseyock/vector-source-load-events-doc
Improve layer typings
2021-01-29 05:57:52 -07:00
geraldo
fd04cd7a41 Fix URLs in ol/source/CartoDB pointing to CartoDB API docs 2021-01-27 17:15:27 +01:00
Simon Seyock
419578a96c Improve layer typings 2021-01-26 15:49:39 +01:00
Andreas Hocevar
3d56201768 Merge pull request #11938 from ahocevar/view-padding-calculateextent
Take view padding into account for calculateExtent()
2021-01-26 11:15:54 +01:00
Andreas Hocevar
aa2c301f3e Do not change center when the padding changes 2021-01-23 21:50:41 +01:00
Andreas Hocevar
4f2b2c5750 Fix loading flag for vector loading strategies 2021-01-23 15:30:34 +01:00
Andreas Hocevar
900107df1d Take view padding into account for calculateExtent() 2021-01-22 20:08:05 +01:00