digidem / comapeo-mobile

The next version of Mapeo mobile
GNU General Public License v3.0
5 stars 1 forks source link

Alerts Detail #811

Open ximenabb opened 4 weeks ago

ximenabb commented 4 weeks ago

What we shared with CMI - CMI or partner submits new alerts to a Mapeo Cloud API endpoint (different endpoint for each project) in GeoJSON format, with a strictly specified schema for GeoJSON feature properties. Mapeo user syncs with Mapeo Cloud when online. Other Mapeo users sync with each other, sharing the alerts offline. All users who have synced see an overlay on their map showing alerts.

Limitations:

In order to implement these features we will need the following from CMI:

What CMI replied

https://docs.google.com/document/d/1hTvhtltAswEehajb0TxE9E6XyK6xVVKteP-YuD_Tu80/edit?tab=t.0 Stylesheet for alerts Here, we are rendering Polygons (with stroke) and LineStrings, and adding a label if the following fields are found: alert_type, month_detec, and year_detec.

It’s tricky to provide a hard-coded style for alerts that will work with many different background maps (imagery, vector) but we have found that a bright, vivid red works best; we are using this same style for alerts on our front end tooling.

CMI thinks that it could be good in the future to have these style properties be set as a fallback, to rename “alerts” to something more generalized like “overlay”, and to allow the Mapeo config designer to provide a style in their configuration (or elsewhere). But for now, we have named things as “alerts” in the layers and sources. Awana should feel free to adopt whatever approach you deem best for now.