Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

LayerPanel is always mounted #281

Closed
stazrad opened this issue Feb 18, 2021 · 2 comments
Closed

LayerPanel is always mounted #281

stazrad opened this issue Feb 18, 2021 · 2 comments
Labels
bug 🐛 Something isn't working

Comments

@stazrad
Copy link
Contributor

stazrad commented Feb 18, 2021

The layer panel being mounted causes really slow rendering on the map for large featuresets. It should not be trying to render features in the layer panel while off the screen. just unmount when it shows again...

@stazrad stazrad added the bug 🐛 Something isn't working label Feb 18, 2021
@ntatko
Copy link
Contributor

ntatko commented Feb 19, 2021

It shouldn't be rendering children, provided state is being updated correctly. I agree, this is a bug, but I can't think why it's doing this.

https://github.com/MonsantoCo/ol-kit/blob/76b1c55cd7344921a2822be8163c59ca1948ecb0/src/LayerPanel/LayerPanelBase/index.js#L52-L56

@akuma1
Copy link
Collaborator

akuma1 commented May 17, 2022

We are deprecating ol-kit.
You may consider these alternatives:

  • Use openlayers directly as recent versions of openlayers provides quite a bit of functionality out of box.
  • Additionally , you can take a look at these openlayers libraries.

@akuma1 akuma1 closed this as completed May 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants