Tim Schaub
bbbca0ab78
Update ESLint config and plugins
2022-05-23 15:01:07 -06:00
VLCEK Martin
e1593ce59d
Support declutter mode for image styles
...
Allows to specify for each image style, whether the image
should be decluttered, always drawn but still serving as
obstacle, or drawn without being an obstacle for other
images/texts.
The layer must still have declutter = true set for this
property to have any effect.
2022-05-05 12:34:00 +02:00
Denis
585ae66961
Fix review for text justify
2022-04-14 13:06:49 +02:00
Denis
e00e3a7b8e
Improve jsDoc for style/Text justify
2022-04-13 00:08:15 +02:00
Denis
5a61bb51f5
Extend Text.js: add justification option
2022-04-13 00:08:15 +02:00
Denis
f3208a2331
Fix Text#setText jsDoc
2022-03-11 20:36:09 +01:00
Andreas Hocevar
18f06b8b9a
Rich text labels
2022-02-23 12:36:56 +01:00
Maximilian Krög
ab5e4f8838
Fix cloning of Icon style when IconImage is not cached
2022-02-17 00:58:35 +01:00
Sergi Ávila
087090c07d
Fix wrong array generic type
2022-02-14 12:46:18 +01:00
Maximilian Krög
a0dd0054a9
Fix jsdoc references
2022-02-13 13:39:06 +01:00
mike-000
57db9a6a12
Add floor, round and ceil
2022-02-10 15:37:45 +00:00
EvertEt
e3d3d24f05
Improve some null types to prepare for strictNullChecks
2022-01-31 19:35:25 +01:00
mike-000
70ee68c649
Add crossOrigin option
...
Co-Authored-By: Andreas Hocevar <andreas.hocevar@gmail.com >
2022-01-18 23:14:30 +00:00
Tim Schaub
59186f2afd
Support paletted rendering in WebGL
2021-12-22 11:14:46 -07:00
Tim Schaub
f5803ad6ca
Support expressions for band arguments
2021-12-05 17:04:50 -07:00
Maximilian Krög
c47fac19b5
Fix style related apidoc issues
2021-11-14 16:56:59 +01:00
mike-000
a0da16e4e9
handle updateable displacement
2021-10-25 10:22:40 +01:00
mike-000
9267d2994d
handle updateable displacement
2021-10-25 10:20:36 +01:00
mike-000
1249ecee45
add setDisplacement method
2021-10-25 10:18:18 +01:00
Tim Schaub
2e531377e2
Merge pull request #12813 from mike-000/fix-zero-size
...
Do not replace icon color if image not loaded
2021-10-12 13:33:34 -06:00
MoonE
9e37182649
Merge pull request #12646 from ashchurova/fix-8136-hit-detection-custom-renderer
...
Support for hit detection in styles with custom rendering
2021-09-29 20:22:57 +02:00
mike-000
564d4f867f
Do not replace color if image not loaded
2021-09-25 13:24:39 +01:00
mike-000
cb6995d71a
Various fixes for browser compatibility issues ( #12740 )
...
* Replace Math.log2 with ol/math.log2
* TypedArray.from() browser compatibility fallback
* listen for input and change events for range
2021-09-15 08:45:12 -06:00
Anna Shchurova
820c123335
Added 'default' section and fixed more linting errors
2021-08-23 13:02:26 -04:00
Anna Shchurova
711ae69bb5
Fixed linting errors
2021-08-20 21:55:05 -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
Andreas Hocevar
7acd5338c9
Allow sampling data from neighboring pixels
2021-08-18 11:24:37 +02:00
Andreas Hocevar
324148c606
Add more docs
2021-08-18 11:24:37 +02:00
Andreas Hocevar
283aed2dc9
Better docs
2021-08-18 11:24:34 +02:00
Andreas Hocevar
f0cac76718
Add expression for Math.abs
2021-08-18 11:24:28 +02:00
Tim Schaub
af80477c1d
Rendering raster tiles with WebGL
2021-08-18 11:24:23 +02:00
Maximilian Krög
2bcd57193d
Don't add color as possible type if it was not set
2021-08-08 15:30:57 +02:00
Seba Kerckhof
fec6fee83c
Remove color from value type in equal operator
2021-07-28 09:26:29 +02:00
Seba Kerckhof
db57d9bf89
Handle named colors as string in equal operator
2021-07-27 18:54:08 +02:00
Maximilian Krög
58e2e57638
Fix hit detection of RegularShape with transparent fill
2021-07-12 19:33:17 +02:00
Maximilian Krög
5f3b22bf7f
Remove lineCap, it is useless on closed paths
2021-07-12 19:32:42 +02:00
Maximilian Krög
ad37baf351
Remove redundant size properties / getter
2021-07-11 12:32:04 +02:00
Maximilian Krög
bee28d61ea
cache render options object
2021-07-11 12:32:03 +02:00
Maximilian Krög
53cf5bb282
Lazily create Regular shape canvases
...
Creating the cached canvases is expensive and they may never be used.
E. g. the hit detect canvas is not needed with the Immediate renderer
and if a feature is never in the viewport the image is not needed either.
2021-07-11 12:32:03 +02:00
Maximilian Krög
87f215939c
Fix some RegularShape bugs related to canvsa size
...
- remove jitter when using RegularShape size in animation, size should
always be an integer
- canvas may have been too small for miter line join
- canvas was at least one stroke width too large for round line join
- reduce canvas size even more for bevel line join
Canvas now precisely fits the shape including stroke, The angle of the
shape is ignored for the calculation.
2021-07-11 12:32:03 +02:00
Maximilian Krög
f21513ab5a
Consistent behaviour if two radii are provided
...
Always double the points event when two radii of same size are provided.
2021-07-11 12:32:03 +02:00
Maximilian Krög
28c40fe93e
getImage is always called with valid pixelRatio
2021-07-11 12:32:03 +02:00
Maximilian Krög
5716c614a8
Cleanup drawing of RegularShape
...
Fixes missing miter/bevel line join because path was not closed before
stroking.
Reduce canvas context calls, skip beginPath, and instead of drawing the
last point use closePath
2021-07-11 12:31:55 +02:00
Maximilian Krög
82265ef031
No unnecessary canvas with transparent fill
...
With pixelRatio != 1 and a transparent fill a unnecessary image was created.
2021-07-11 12:30:18 +02:00
Andreas Hocevar
79f5f46d27
Remove lint
2021-06-28 18:10:51 +02:00
Maximilian Krög
1fc94337f7
Fix icon tinting with pixelRatio < 1
2021-06-21 00:13:55 +02:00
Tim Schaub
f08f31101c
Lowercase module names for modules without a default export
2021-05-03 07:32:12 -06:00
Andreas Hocevar
4a6db3d2f8
Fix icon displacement
2021-04-01 12:08:32 +02:00
Tim Schaub
a7684d8fbf
Avoid colliding user variables with internal names
2021-02-11 07:38:46 -07:00
Tim Schaub
c9a3b3bf92
Throw when parsing encounters an unexpected type
2021-02-10 19:18:55 -07:00