Commit Graph

13000 Commits

Author SHA1 Message Date
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 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
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
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
Hannes 25a374d698 Mention unit of radius for Polygon.circular()
Radius was using an unknown unit. This makes it clear that it will be interpreted as meters.
2021-01-19 17:25:47 +01:00
Andreas Hocevar 31d6580d88 Merge pull request #11914 from ahocevar/vectortile-declutter-image-with-text
Fix image with text decluttering
2021-01-17 18:32:27 +01:00
Andreas Hocevar cadc45e14d Merge pull request #11911 from ahocevar/declutter-tilegrid
Do not clip declutter executor groups
2021-01-17 18:31:11 +01:00
Andreas Hocevar 45f367cc04 Merge pull request #11856 from mike-000/patch-18
Use tilegrid extent as default attributionExtent for TileJSON
2021-01-15 14:35:20 +01:00
Andreas Hocevar fc20e77cea Fix image with text decluttering 2021-01-15 00:29:58 +01:00
mike-000 500814db3c handle null geometry 2021-01-14 11:11:01 +00:00
Andreas Hocevar 5084b04173 Do not clip declutter executor groups 2021-01-13 20:49:29 +01:00
Andreas Hocevar 58f533315d Merge pull request #11893 from mjjurkoic/issue-11860
Pass the renderer function to the cloned style
2021-01-13 09:48:13 +01:00
Andreas Hocevar 503aaef001 Merge pull request #11901 from ahocevar/vectortile-renderbuffer
Fix handling of VectorTile renderBuffer
2021-01-11 09:07:58 +01:00
Andreas Hocevar 1cc9fdb6ec Fix handling of VectorTile renderBuffer 2021-01-10 18:59:07 +01:00
Tim Schaub 448d939681 Merge pull request #11890 from walkermatt/wfs_filter_version
Fix WFS writeFilter
2021-01-08 17:13:57 -07:00
mjjurkoic 1842170b20 Eliminate redundant code
Co-authored-by: Stéphane Brunner <stephane.brunner@camptocamp.com>
2021-01-08 09:21:49 -08:00
Andreas Hocevar 39c0305f74 Merge pull request #11892 from ahocevar/draw-stopclick
Restore stopClick functionality
2021-01-08 09:54:05 +01:00