AHAAAAAAA / mapbh

Visualizing Bahrain with old maps
https://mapbh.org
11 stars 0 forks source link

Set map via query params (coords too?) #11

Open AHAAAAAAA opened 2 weeks ago

AHAAAAAAA commented 2 weeks ago

Feature

You found a cool feature in a map (e.g. abandoned building in the desert) and you want to share it easily with a friend. You copy the URL and your friend sees the exact same thing as you.

Problem

Map state is ephemeral on each page load. There's currently no way to persist this state in a shareable way (besides written instructions, I suppose).

Solution

Make use of query params to set the map state. Important parameters to set:

Note: The site should continue to work without parameters and null/not found values should default to reasonable settings.