ConservationMetrics / guardianconnector-views

A Nuxt.js tool that reads data from a SQL database and renders it on different views (map, gallery, alerts dashboard)
MIT License
3 stars 0 forks source link

Add pulsating circles over new alerts #22

Closed rudokemper closed 6 months ago

rudokemper commented 6 months ago

Contributes to https://github.com/ConservationMetrics/guardianconnector-views/issues/16 by adding animated pulsating circles around the latest batch of alerts, to draw the user's attention to the most recent data. addPulsatingCircles() is called and once the map is idle (e.g. data has been loaded), it draws map markers around the bbox of the data. Additionally, removePulsingCirclesUponInteraction() is called to listen for any map interaction events and deactivate the circles upon detection.