MelihAltintas / vue3-openlayers

Web map Vue 3.x components with the power of OpenLayers
https://vue3openlayers.netlify.app/
MIT License
679 stars 126 forks source link

Cluster : updating regularly coordinates features #323

Closed ChrisD92 closed 5 months ago

ChrisD92 commented 6 months ago

Describe the bug When I use ol-cluster for displaying the position of multiple vehicule, which are tracked by GPS and fetch with api, the number of features explosed as exponential. I update features with new vehicule income or update mooving vehicule position by changing their coordinates every 3 seconds. But after a few minutes, the navigator freeze, and the console display an error message running out of memory. Do you have any idea about this issue ?

Affected version(s)

Latest 6.3

<VERSION_OUTPUT>

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

d-koppenhagen commented 6 months ago

Hey @ChrisD92 thanks for reporting. I am currently on my investigation of some potential leaks here. But to investigate it more easily: can you provide a minimal reproduction scenario (repo, Stackblitz, etc.)?

d-koppenhagen commented 6 months ago

Oh an are you using the AnimatedClusterLayer or a vector layer using the ClusterSource? Can you try out the latest version (I recently made some adjustments which could solve your problem).

d-koppenhagen commented 5 months ago

I will closes this for now, as there was not response. Please update to the latest version 8.0.0 and try again. If the problem still exists, please provide a minimum reproduction example. Ideally, you can fork the Stackblitz starter template