Terrastories / terrastories

Terrastories is a geostorytelling application for mapping, managing and sharing place-based stories.
https://terrastories.app
MIT License
316 stars 157 forks source link

[Map] Adjust map maximum zoom extent when using filters #408

Closed rudokemper closed 4 years ago

rudokemper commented 4 years ago

When using the filters, Terrastories zooms in/out to the maximum extent of the places on the map.

Currently, it zooms in/out to the exact coordinates of the places that are the most North/East/South/West in the map view, with the result that these places appear at the borders of the browser window.

Let's make it so that the zooming to maximum extent leave a bit more space in the margins, so that the markers of these furthermost places are entirely contained within the browser window.

rudokemper commented 4 years ago

image Demonstration of the current behavior. This is after using the filters. Notice that the markers are being cut off on the west and east side of the map. Ideally, there should be a buffer at the edges to ensure the markers are entirely visible.