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 `BasemapSelector` component to allow the user to toggle between different map styles #52

Closed rudokemper closed 2 months ago

rudokemper commented 2 months ago

Goal

To add a new component that allows the user to toggle between different map styles - Mapbox custom (default as provided by env var), Mapbox Satellite Streets, Mapbox Streets, and Planet Visual Monthly.

Screenshots

Initial / deactivated state: image

Activated state to toggle modal to open: image

New basemap selected: image

What I changed

What I'm not doing here

Right now, the Planet Monthly Visual Basemap is hard coded to be 2024-02. https://github.com/ConservationMetrics/guardianconnector-views/issues/44 describes follow-on work to add a slider to select a month & year.