ConservationMetrics / map-packer

A Nuxt app to allow users to generate and manage offline map requests to mapgl-tile-renderer
MIT License
3 stars 0 forks source link

Add `GenerateMap` map and sidebar child components with double-binding state synchronization #3

Closed rudokemper closed 4 months ago

rudokemper commented 4 months ago

Goal

To split up the GenerateMap view into a parent and two new child components (Map and Sidebar), and to add double-binding functionality and smooth state synchronization between them.

Screenshots

image

What I changed

What I'm not doing here

To get this working, I needed to store the map as a reactive state, which breaks the map rendering; a known bug with Mapbox + Vue with some documented workarounds. I will fix this in follow-up work.