WFP-VAM / prism-app

PRISM is an interactive map-based dashboard that simplifies the integration of geospatial data on hazards, along with information on socioeconomic vulnerability
MIT License
45 stars 33 forks source link

Performance - Avoid multiple rendering for WMS dates #885

Open JulienPathtech opened 1 year ago

JulienPathtech commented 1 year ago

Prevent unnecessary layer rendering.

The WMSLayers component is rendered twice when we change date (selectedDate of the WMSLayer for instance). One rendering is done with current date and an another one is triggered with a the new selectedDate.

image

How to reproduce :

Is there anything else you can add about the proposal? You might want to link to related issues here, if you haven't already.

I reproduced this with WMSLayers but that might be the case with other layer type

HarryMytilinaios commented 1 year ago

@ericboucher @JulienPathtech. Some thoughts on the performance optimization:

JulienPathtech commented 1 year ago
ericboucher commented 5 months ago

Linked to #1040