Commit Graph

1191 Commits

Author SHA1 Message Date
Tim Schaub a32830c16b Merge pull request #13981 from mike-000/immediate-text
Fix immediate renderer text rotation with offset
2022-08-16 20:04:48 -06:00
Tim Schaub e566868a5b Allow short name to be extracted 2022-08-15 16:58:42 -06:00
mike-000 0bea162f87 fix text rotation with offset 2022-08-14 19:36:04 +01:00
Tim Schaub 435e0bb9e8 Merge pull request #13972 from tschaub/un_opt
Remove opt_ prefix
2022-08-12 06:16:27 -06:00
Tim Schaub 99612e7f9a Remove opt_ prefix 2022-08-11 20:14:35 -06:00
mike-000 4953f63fd7 Do not apply #12467 change to Icons
Use getPixelRatio() as in ImageBuilder
2022-08-08 23:48:49 +01:00
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
Tim Schaub 85ef563ba8 Remove PluggableMap 2022-07-31 10:08:13 -06:00
Maximilian Krög a076899470 Make Text options typesafe 2022-07-29 21:24:46 +02:00
Olivier Guyot 7d56c56210 Merge pull request #13461 from jahow/webgl-shape-renderer
WebGL vector renderer for polygons, lines and points
2022-07-22 10:05:31 +02:00
Tim Schaub 7e424be66b Only pass the feature to the attribute getter 2022-07-21 13:49:06 -07:00
Tim Schaub 5182b16452 Private if not used elsewhere; underscore suffix only if private 2022-07-21 13:03:10 -07:00
Maximilian Krög 7ec2725c1e Replace IconAnchorUnits enum with typedef 2022-07-19 23:24:25 +02:00
Maximilian Krög 185485b0f7 Replace GeometryLayout enum with typedef 2022-07-19 23:24:22 +02:00
Maximilian Krög 69caa06783 Replace TextPlacement enum with typedef 2022-07-19 22:56:45 +02:00
Maximilian Krög 1df5afcdbf Remove deprecated label cache 2022-07-17 04:15:24 +02:00
Olivier Guyot 998dc82592 fixes after rebase 2022-07-15 22:53:48 +02:00
Olivier Guyot cd83424867 WebGL / improve doc for Helper and VectorLayerRenderer
Also created enums for attributes (like uniforms), in an attempt to clarify
what is accessible to the vertex shaders.
2022-07-15 22:33:52 +02:00
Olivier Guyot 6848df97f8 WebGL / Address review comments 2022-07-15 22:33:52 +02:00
Olivier Guyot 9e35acaa0a Adapt the batch renderers to trigger a repaint after buffer rebuild 2022-07-15 22:33:52 +02:00
burleight 8769ea519e WebGL / render multiple worlds to wrap X in vector renderer
From https://github.com/jahow/openlayers/pull/1

Adds logic in WebGLVectorLayerRenderer to handle multiple worlds visible at once.

Co-authored-by: Tomas Burleigh <t.burleigh@gmail.com>
Co-authored-by: Olivier Guyot <olivier.guyot@camptocamp.com>
2022-07-15 22:33:52 +02:00
Olivier Guyot 7e9c620914 Fix linting and typechecking errors 2022-07-15 22:33:52 +02:00
Olivier Guyot 143c19ca03 Add utils for generating webgl buffers from lines and polygons
Uses @mapbox/earcut for polygon (what else), and a home made logic for lines
2022-07-15 22:33:52 +02:00
Olivier Guyot a18ffaed54 Move webgl utils out of ol/renderer/webgl/Layer module into their own module 2022-07-15 22:33:52 +02:00
Olivier Guyot eb0db9e3df Introduce batch renderers for each type of geometry
Batch renderers are responsible for generating render instructions and
interacting with the worker to obtain the final webgl buffers
2022-07-15 22:33:52 +02:00
Olivier Guyot b5fbed5437 Introduce MixedGeometryBatch for webgl rendering
This class keeps an up-to-date list of line, polygon and point geometries
to render as well as vertices counts, geometries count, rings count etc.
2022-07-15 22:33:52 +02:00
Andreas Hocevar 884c0c6129 Resolve conflicts 2022-07-15 10:51:08 +02:00
Tim Schaub 3a061ed576 Use union type instead of enum for canvas builder type 2022-07-15 10:51:07 +02:00
Tim Schaub 9a6f8493fb Use union instead of enum for geometry type 2022-07-15 10:48:37 +02:00
Andreas Hocevar 78e7f378fe Merge pull request #12106 from IQGeo/issue-12101
improve text width calculation
2022-06-08 15:39:29 +02:00
Maximilian Krög d45e08d197 Fix icon offset for hitdetect image
It only worked correctly with pixel ratio of 1
2022-05-25 22:33:57 +02:00
Tim Schaub bbbca0ab78 Update ESLint config and plugins 2022-05-23 15:01:07 -06:00
Luis Camacho 5e2b9fb629 fix to text width calculation
now considers new lines to match rendering
2022-05-22 12:29:19 +01:00
Andreas Hocevar fc5f85dbcf Add null return type 2022-05-13 19:39:47 +02: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 1850e16bde Improve jsDoc and some naming 2022-04-13 14:11:28 +02:00
Denis 4db25c86c8 Implement text justify within the label box
See: https://github.com/openlayers/openlayers/issues/13481
2022-04-13 00:08:15 +02:00
Andreas Hocevar 18f06b8b9a Rich text labels 2022-02-23 12:36:56 +01:00
Maximilian Krög b29ab8f104 Link to class instead of module pages 2022-02-14 21:53:07 +01:00
Andreas Hocevar ec1eec829c Merge pull request #13328 from EvertEt/strictnullchecks-3
Improve some nullable map types
2022-02-07 21:12:08 +01:00
Tim Schaub f10ba5c1e3 Avoid duplicate imports 2022-02-05 11:46:26 -07:00
EvertEt 15de4bb5ab Improve some nullable map types
Closes #13326
2022-02-04 17:05:52 +01:00
Maximilian Krög f0e768bb9a Remove case of MulitPolygon RenderFeature 2022-01-29 21:51:29 +01:00
Maximilian Krög 856f239280 Add function to convert RenderFeature to Feature 2022-01-29 17:52:07 +01:00
Tim Schaub 68ea485e69 Dispatch precompose and postcompose events for WebGL layers 2021-12-15 16:59:51 -07:00
Andreas Hocevar d4cc76f3f1 Add background to MapboxVector layer 2021-11-19 18:17:55 +01:00
Tim Schaub 2adf74ece4 Include WebGL context in render events for WebGL layers 2021-10-29 08:39:47 -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