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

Sort stories dropdown resets map to default zoom/bounds when it shouldn't. #423

Closed rudokemper closed 4 years ago

rudokemper commented 4 years ago

The sort stories dropdown should just filter the stories in the sidebar (in order A-Z, Z-A, or Most Recent). Currently, it seems to also triggering resetMapToCenter() as the map pans back to the default zoom and bounds. It should not be.

This behavior can be replicated in the demo: http://terrastories.herokuapp.com/en/home

  1. set the filters to Type of place > nonprofit campus. The map will zoom to the one point of this kind (as it should).
  2. use the Sort stories filter to anything else. It will zoom back to the default zoom/bounds (as it shouldn't).

image

rudokemper commented 4 years ago

Could this be related to https://github.com/Terrastories/terrastories/issues/259?