coopcycle / coopcycle-web

Logistics & marketplace platform. Only for worker-owned business.
https://coopcycle.org
Other
554 stars 127 forks source link

In the dispatch panel, the markers "cache" is not set #4402

Closed Atala closed 2 weeks ago

Atala commented 3 weeks ago

In the MapProxy file we added some code to "cache" the marker of the task, so it is not re-rendered everytime the markers are updated on the map (mostly when setting filters on/off). however i have the impression that this cache is never set, because it is set only when we open the marker popup on the map.

setting it direcly when rendering the marker could improve load when updating filters

https://github.com/coopcycle/coopcycle-web/blob/master/js/app/dashboard/components/MapProxy.js#L205

Atala commented 2 weeks ago

nevermind it is set