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
Andreas Hocevar
3744283f02
Only include renderBuffer when decluttering
2020-08-01 10:58:43 +02:00
Andreas Hocevar
274a8b8fc3
Fix text instruction flat coordinates when stride is not 2
2020-07-29 19:56:37 +02:00
Andreas Hocevar
ac5f52a21f
Hit detect everything with a pixel ratio of 1
2020-07-27 19:56:35 +02:00
Stéphane Brunner
bf24288f09
Fix for not integer pixel ratio
2020-07-15 16:37:40 +02:00
Stéphane Brunner
f2fe6e5957
Have high resolution regular shape
2020-07-15 10:53:20 +02:00
Andreas Hocevar
6ec49d5ee0
Fix upright labels on vector tiles
2020-07-11 17:55:34 +02:00
Andreas Hocevar
323a472fbb
Merge pull request #11037 from mike-000/patch-11
...
Allow icon and text styles to be scaled in two dimensions
2020-06-13 10:00:06 +02:00
Andreas Hocevar
e3c2142cab
Do not add empty arrays to the frameState's declutterItems
2020-06-09 10:18:59 +02:00
Andreas Hocevar
1504cd942a
Fix multigeometry decluttering
2020-06-09 09:43:55 +02:00
Andreas Hocevar
4d1f65f2db
Restore functionality whennot decluttering
2020-06-08 23:21:43 +02:00
Andreas Hocevar
f289979cbf
Keep original renderBuffer for hit detection
2020-06-08 22:55:26 +02:00
Andreas Hocevar
686c665c71
No empty declutter instructions, but with individual box
2020-06-08 22:43:38 +02:00
Andreas Hocevar
ff980077ee
Consider area around viewport for decluttering
2020-06-08 22:40:26 +02:00
Andreas Hocevar
0f9de15448
Less declutter flicker by respecting renderBuffer
2020-06-08 11:39:02 +02:00
mike-000
cf0e650435
allow scale to be two dimensional
...
add getScaleArray() method
test two dimension scale icons
test two dimension scale text
add example of icon and label scaling
use smaller icon and larger interval
test two dimensional scale icons
test two dimensional scale icons
2020-05-20 09:54:47 +01:00
mike-000
7f99ce46bb
set background fill style for each label
...
add check for declutter
2020-05-05 16:22:58 +01:00
mike-000
d72c7fdc13
set background fill style for each label
2020-05-05 13:04:25 +01:00
Andreas Hocevar
781a5443cf
Handle scaled output canvas correctly
2020-04-29 20:19:42 +02:00
Andreas Hocevar
7f6258dd0d
Set pointerEvents style programmatically instead of relying on ol.css
2020-04-16 17:34:40 +02:00
Andreas Hocevar
6426cd10dc
Fix render/Feature scope issue
2020-04-15 10:53:25 +02:00
Andreas Hocevar
b0f20d6bd6
Use imports for enum types
2020-04-15 10:53:23 +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
79ccef7bf6
Do not append hit canvas to document body
2020-04-05 09:55:09 +02:00
Frederic Junod
a695ce8616
Remove all inheritDoc tags from src/ol/render
2020-04-03 07:56:58 +02:00
Szabo Bogdan
6aa398cbec
Fix hit detection for images with missing size
2020-03-26 21:23:23 +01:00