Select interaction crashes with empty vector layer when `declutter: true`
See original GitHub issueDescribe the bug
If you have a VectorLayer
with declutter: true
and its VectorSource
has no features, attempting to select with a Select
interaction throws an exception.
To Reproduce Steps to reproduce the behavior:
- https://codesandbox.io/s/exciting-tdd-ywt0c
- Click the map
- A
TypeError
is shown (“Cannot read properties of null (reading ‘all’)”)
Expected behavior Selecting from an empty layer should work without exceptions even when declutter is set to true.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:5 (3 by maintainers)
Top Results From Across the Web
OpenLayers declutter styling - GIS Stack Exchange
when I set it true for points, points are starting disappear when map is zoomed out.
Read more >World Partition - Data Layers - Unreal Engine Documentation
These layers can be loaded and unloaded to organize your world. ... the Data Layers in your world, go to the Window menu...
Read more >How to Reshape Input Data for Long Short-Term Memory ...
In this tutorial, you will discover how to define the input layer to LSTM models and how to reshape your loaded input data...
Read more >Layouts - Android Developers
A View usually draws something the user can see and interact with. Whereas a ViewGroup is an invisible container that defines the layout ......
Read more >Troubleshooting issues related to playback and performance ...
Select File > Project Settings > General > Renderer and change the setting ... applied in real time, it may result in reduced...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ahocevar is there any ETA for when this will be released? We’re also currently facing this issue.
Just wanted to confirm that this is fixed with v6.10.0. Thank you! @ahocevar