Commit Graph

2006 Commits

Author SHA1 Message Date
Maximilian Krög
1942f3f91b Fix rendering VectorImage with no features in view extent 2021-09-27 23:04:58 +02:00
Andreas Hocevar
2e222083de Merge pull request #12804 from ahocevar/vectortiles-simpler-faster
Make vector tiles rendering simpler and a bit faster
2021-09-23 20:38:17 +00:00
Tim Schaub
b03b6b2e87 Merge pull request #12802 from tschaub/enqueue-next
Enqueue tiles at the next step in the animation
2021-09-23 20:37:38 +00:00
Andreas Hocevar
9aa890217c Render images only when we have frame budget left 2021-09-23 20:11:26 +00:00
Andreas Hocevar
74a628ac85 Remove unused tile image render queue 2021-09-23 19:47:10 +00:00
Tim Schaub
4dc66ef8e3 Enqueue tiles at the next resolution in the animation 2021-09-23 17:28:39 +00:00
Andreas Hocevar
6d427050ce Merge pull request #12792 from ahocevar/no-render-work-when-no-features
Do not do any canvas work when there are no features to render
2021-09-23 16:34:47 +00:00
Tim Schaub
a332842540 More cleanup in the WebGL tile layer's dispose method 2021-09-23 12:00:00 +00:00
Andreas Hocevar
46b21c2588 Do not do any canvas work when there are no features to render 2021-09-21 11:21:01 +00:00
Andreas Hocevar
610fd69120 Do not render vector tiles unless they are being used 2021-09-18 11:02:55 +02:00
Andreas Hocevar
c57c898381 Merge pull request #12760 from ahocevar/opacity
Fix opacity handling for tile and vector layers
2021-09-16 19:49:47 +02:00
Andreas Hocevar
2f5e6906b9 Fix opacity handling for tile and vector layers 2021-09-16 08:49:32 +02:00
Duck
17394cc8be Ensure the texture is loaded into the correct index.
The previous code would try to load subsequent textures into the 0th slot.
2021-09-15 15:10:08 -07:00
Andreas Hocevar
c9593b0cf6 Adjust resolution for user extent 2021-09-10 02:01:46 +02:00
Tim Schaub
d37e3e3134 Configure cache on the layer instead of the source 2021-08-27 18:04:00 -06:00
Andreas Hocevar
7acd5338c9 Allow sampling data from neighboring pixels 2021-08-18 11:24:37 +02:00
Andreas Hocevar
4526f2ef34 Properly handle alt tiles of transparent images 2021-08-18 11:24:34 +02:00
Andreas Hocevar
394873013c Do not render layer when outside extent 2021-08-18 11:24:32 +02:00
Andreas Hocevar
311247265b Add interim tiles handling 2021-08-18 11:24:26 +02:00
Tim Schaub
af80477c1d Rendering raster tiles with WebGL 2021-08-18 11:24:23 +02:00
Simon Seyock
f636d68cce Fix typing errors. 2021-08-06 17:14:17 +02:00
Simon Seyock
d6e0eb75fa Use Source as default parameter for Layer. 2021-08-06 17:14:17 +02:00
Bryant Evans
709e933799 Forward LayerType type parameter to LayerRenderer 2021-07-12 09:00:20 +00:00
MoonE
7adaf7c1b5 Merge pull request #12442 from MoonE/fix-layer-extent
Fix layer render extent when it is not at all in view
2021-07-11 20:04:45 +02:00
Maximilian Krög
83226cc79a Fix layer render extent when it is not at all in view 2021-07-11 18:27:48 +02:00
Maximilian Krög
f57413fc04 add tests for layer extent config 2021-07-11 18:27:48 +02:00
Maximilian Krög
7f088c2eb8 Fix gap in tiles due to floating point math 2021-07-06 21:55:24 +02:00
Andreas Hocevar
79f5f46d27 Remove lint 2021-06-28 18:10:51 +02:00
Maximilian Krög
e8b336d11e Fix hitdetection image invalidation 2021-06-20 22:35:55 +02:00
Tim Schaub
c6a06018c3 Merge pull request #12368 from openlayers/dependabot/npm_and_yarn/typescript-4.3.2
Bump typescript from 4.2.4 to 4.3.2
2021-05-31 14:33:41 -06:00
Tim Schaub
9a38b3fc1c Cast layer to base vector type 2021-05-31 14:25:21 -06:00
Andreas Hocevar
5ab7cbf905 Simpler and faster VectorTile loading 2021-05-30 21:22:03 +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
MoonE
d09e303672 Merge pull request #12016 from MoonE/hitdetect-resolution-constant
Fix VectorLayer hitdetect problems
2021-02-27 20:50:31 +01:00
Maximilian Krög
29349d275e Always return Promise from getFeatures 2021-02-24 18:37:30 +01:00
Andreas Hocevar
0f953193ea Merge pull request #12018 from ahocevar/only-render-image-when-needed
Only render vector tile image when needed
2021-02-11 08:35:57 +01:00
Andreas Hocevar
2d8e7d87ba Always use same order for renderedTiles 2021-02-10 21:24:06 +01:00
Andreas Hocevar
ea961c859c Only render vector tile image when needed 2021-02-10 19:59:39 +01:00
Maximilian Krög
5a7e4dfaf6 Add a constant for the hit-detection resolution 2021-02-10 01:04:19 +01:00
Andreas Hocevar
56cea5f880 Merge pull request #11990 from ahocevar/remove-vectortile-image-mode
Remove renderMode: 'image' for vector tile layers
2021-02-09 16:36:27 +01:00
Andreas Hocevar
ebc3631341 Also apply layer opacity to decluttered content 2021-02-06 15:21:39 +01:00
Andreas Hocevar
45ba5792cc Remove renderMode: 'image' for vector tile layers 2021-02-06 14:57:21 +01:00
Andreas Hocevar
4d5d80cb27 Respect opacity for vector instructions 2021-02-06 13:38:14 +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
Tim Schaub
19bb3f8c88 Consistent use of Array and Object types 2021-02-02 13:53:10 -07:00
Andreas Hocevar
5084b04173 Do not clip declutter executor groups 2021-01-13 20:49:29 +01:00
Andreas Hocevar
1cc9fdb6ec Fix handling of VectorTile renderBuffer 2021-01-10 18:59:07 +01:00
Tim Schaub
afd0b8f757 Throw an error if shaders fail to compile or program fails to link 2021-01-05 17:24:58 -07: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