question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Select interaction crashes with empty vector layer when `declutter: true`

See original GitHub issue

Describe 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:

  1. https://codesandbox.io/s/exciting-tdd-ywt0c
  2. Click the map
  3. 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:open
  • Created 2 years ago
  • Reactions:7
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
masihsadatyyccommented, Nov 1, 2021

@ahocevar is there any ETA for when this will be released? We’re also currently facing this issue.

1reaction
masihsadatyyccommented, Jan 4, 2022

Just wanted to confirm that this is fixed with v6.10.0. Thank you! @ahocevar

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found