Commit Graph

696 Commits

Author SHA1 Message Date
Maximilian Krög
0b945f2321 Use includes instead of indexOf 2022-08-05 01:49:01 +02:00
Maximilian Krög
ef82bbd83a Remove check for context.setLineDash 2022-08-03 22:25:19 +02:00
Maximilian Krög
7c81cb41a8 Remove IconImage color fallback for IE 2022-07-31 02:29:20 +02:00
Tim Schaub
ab48290bd7 Accept an object literal for static layer styling 2022-07-30 09:48:10 -06:00
Tim Schaub
1c1270cba4 Merge pull request #13899 from tschaub/lazy-image
Wait until first load to create icon image
2022-07-29 18:27:46 -06:00
Maximilian Krög
a076899470 Make Text options typesafe 2022-07-29 21:24:46 +02:00
Tim Schaub
d31f40d6ce Wait until first load to create icon image 2022-07-29 13:24:17 -06:00
Tim Schaub
fab4e83745 Use Math.log2 2022-07-27 15:11:14 -06:00
Maximilian Krög
62e335ceda Replace IconOrigin enum with typedef 2022-07-19 23:24:25 +02:00
Maximilian Krög
7ec2725c1e Replace IconAnchorUnits enum with typedef 2022-07-19 23:24:25 +02:00
Maximilian Krög
69caa06783 Replace TextPlacement enum with typedef 2022-07-19 22:56:45 +02:00
Tim Schaub
9a6f8493fb Use union instead of enum for geometry type 2022-07-15 10:48:37 +02:00
Tim Schaub
ebeef238e3 Merge pull request #13747 from theduckylittle/feature/add-setters-to-shape-styles
Add setFill and setStroke to Shapes
2022-07-02 16:16:03 -06:00
mike-000
4271dcc5b5 Include displacement and declutterMode in clone 2022-06-30 23:08:37 +01:00
Duck
c182bbf66b Show an example of changing the color with setfill 2022-06-23 06:01:11 -07:00
Duck
4ef584b410 Add setFill and setStroke to Shapes
This rounds out the shape style sto be more
consistent and make the `setFill` and `setStroke`
methods available.
2022-06-23 06:01:11 -07:00
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