activist-org / activist

An open-source activism platform
https://activist.org
GNU Affero General Public License v3.0
242 stars 195 forks source link

map: on event creation, allow location search and store location geometry #964

Open wkyoshida opened 2 months ago

wkyoshida commented 2 months ago

Terms

Description

Related to issues:

I believe I might've mentioned this idea before, but noting it down here finally..


When creating an event, it could be interesting for the user to be able to search for locations à la nominatim and for the creation page to then display a preview map for the user to check if a selected location is correct for their event.

With the event details and location confirmed, activist could then store the location's geometry to later use it to display on the event page's map.

With the event page, we would then have a way to more appropriately set the zoom level and the map center that fits for the event's location.

Contribution

Happy to support someone on this or get to it myself 😁

wkyoshida commented 2 months ago

Noting that:

andrewtavis commented 2 months ago

I'd argue let's save both versions at the start and potentially delete the full geometry it it's not needed :) This makes tons of sense though! Would you be interested in putting this in events/create, @wkyoshida? I could edit the designs a bit and send something along?