Anna Shchurova
711ae69bb5
Fixed linting errors
2021-08-20 21:55:05 -04:00
Anna Shchurova
ba65896cef
Fixed case for POINT
2021-08-20 15:50:04 -04:00
Anna Shchurova
aa58a358ea
Added new 'hitDEtectionRenderer' property to ol.style.Style and used it in custom drawing
2021-08-20 15:10:59 -04:00
Maximilian Krög
f1ecc87425
High resolution image style for immediate renderer
2021-07-11 12:32:03 +02:00
Simon Seyock
7fc664c3fe
sources and layers.
2021-07-10 11:28:48 +02:00
Simon Seyock
3365576548
Add PluggableMap.
2021-07-10 11:28:47 +02:00
Andreas Hocevar
79f5f46d27
Remove lint
2021-06-28 18:10:51 +02:00
MoonE
e82a86f563
Merge pull request #12194 from MoonE/immediate-pixel-ratio
...
Respect pixel ratio with immediate render
2021-06-18 19:31:00 +02:00
Tim Schaub
2e4b2e10ab
Fix additional doc links
2021-06-17 21:59:51 -06:00
Maximilian Krög
c55366d35e
use correct stride for draw image
2021-06-17 00:14:34 +02:00
Maximilian Krög
3791dee358
Fix immediate render with pixel ratio != 1
2021-06-17 00:14:27 +02:00
Maximilian Krög
bf0671fc08
Fix layer canvas reuse
...
If the scale values have more than 6 decimals they are rounded and can no longer be
compared to the created transform string.
2021-05-18 15:43:55 +02:00
AndersVittrup
aa61c47fc4
Fixed document ref in hitdetect
...
fixed lint
2021-05-13 20:51:40 +02:00
Andreas Hocevar
7ec5cbffe9
Set block layout for text measurement
2021-04-16 22:46:14 +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
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
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
Simon Seyock
2ad5789797
Add descriptions for properties.
2021-02-04 18:19:33 +01:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Simon Seyock
f590cb3473
Harmonize jsdoc
2021-02-02 12:14:56 +01:00
Andreas Hocevar
fc20e77cea
Fix image with text decluttering
2021-01-15 00:29:58 +01:00
Andreas Hocevar
1cc9fdb6ec
Fix handling of VectorTile renderBuffer
2021-01-10 18:59:07 +01:00
Tim Schaub
aed4773ecb
Hit lines even if they are dashed
2020-12-30 12:33:06 -07:00
Andreas Hocevar
c4f5709349
Simplify custom circle rendering
2020-12-19 21:35:00 +08:00
changqing
811c130241
Implement custom circle render
2020-12-15 15:38:23 +08: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
c076d273e7
Cache hit detect indexes and check closest pixels first.
2020-12-01 20:19:58 +01:00
Andreas Hocevar
28aaa2e0d3
Pass geometry to forEachFeatureAtPixel callback
2020-11-27 13:43:28 +01:00
Andreas Hocevar
11b9a0f5ed
Merge pull request #11722 from ahocevar/text-align-rtl
...
Correct meaning of 'start' and 'end' text align for LTR text
2020-11-15 20:45:16 +01:00
Andreas Hocevar
7232001d9f
Regex with better distinction between LTR and RTL characters
...
Co-authored-by: MoonE <maxi_kroeg@web.de >
2020-11-15 08:59:43 +01:00
Andreas Hocevar
7cc45c967b
Correct meaning of 'start' and 'end' text align for LTR text
2020-11-06 18:13:50 +01:00
Maximilian Krög
b6ee7084c9
Fix stroke for text along path wiht negative x scale
2020-11-05 22:35:54 +01:00
Andreas Hocevar
c9ebf79df5
Add types and comments to make combined image+text decluttering clearer
2020-10-05 19:17:22 +02:00
Andreas Hocevar
8e862766fc
New decluttering implementation
2020-09-27 21:13:26 +02:00
Andreas Hocevar
7a5e0db59f
Remove decluttering for a fresh start
2020-09-18 23:31:20 +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
Maximilian Krög
df81f53eb5
Some simplifications
2020-09-12 20:54:53 +02:00
Maximilian Krög
3e4e21dc8d
Only check if point is in extent for MultiPoint and TextLabels
2020-09-12 18:23:24 +02:00
Maximilian Krög
fb62e7928e
Rename method used for lines.
2020-09-11 23:53:59 +02:00
Guillaume Beraudo
39fc6d7816
Avoid unnecessary transform in MVT format
...
When using ol.render.Feature there was a mandatory geometry transform.
With this change it is now easy to read features directly in the native tile projection.
Since there is no needed transform, there is no need either to define an extent and a world extent, for that use-case.
2020-09-10 17:13:30 +02:00
Langbein, Michael
a70ce2ca06
Implement preRender and postRender methods for WebGLLayerRenderer
...
This is required so that Renderers like WebGLPointsLayerRenderer can fire prerender and postrender events.
Problem described in [issue 11463](https://github.com/openlayers/openlayers/issues/11463 ).
2020-08-30 13:20:18 +02:00
Haász Sándor
02e0b1af11
fix: modify rbush package import
2020-08-25 13:27:48 +02:00
Frederic Junod
e932233103
Fix typo in module name
2020-08-13 10:48:00 +02:00
mike-000
9468a088c0
ensure extent is valid when scale is negative
...
test large flipped icon in buffer zone
test hit detection for negative image scale
2020-08-07 10:26:38 +01:00