digidem / react-mapfilter

Visualizing, exploring, filtering and printing geographic data and geotagged photos and video
https://lab.digital-democracy.org/mapfilter
29 stars 11 forks source link

Add filter / view sharing #44

Open gmaclennan opened 8 years ago

gmaclennan commented 8 years ago

We can encode the current filter using base64-url and store it as a url parameter, then add a hook in componentDidMount() to load it from the url and update the store. The map state is automatically stored in the url too. URLs will be long, so we should only generate when needed - probably some kind of share button on the app bar. Could also use a link-shortening service.