Currently the map that users interact with on the homepage uses Layerchart. There are notable issues:
Pinch and drag, panning and zooming does not work on mobile. This is currently lacking in the layerchart library.
We cannot programmatically navigate to the selected constituency because of limitations with the Layerchart zoomTo() function. TLDR; the geo context is not exposed by the parent component and it is difficult to match the projection that the map uses and the projection we use to perform zoomTo.
Currently the map that users interact with on the homepage uses Layerchart. There are notable issues:
zoomTo()
function. TLDR; the geo context is not exposed by the parent component and it is difficult to match the projection that the map uses and the projection we use to perform zoomTo.Keeping this in mind, I propose we convert this into a Maplibre interactive. Maybe this example: https://svelte-maplibre.vercel.app/examples/zoom_transition