adzialocha / hoffnung3000

Platform for decentralized, anonymized, self-curated festivals
https://hoffnung3000.de
GNU Affero General Public License v3.0
36 stars 8 forks source link

Feature: Show all events in a map #89

Closed sandreae closed 4 years ago

sandreae commented 4 years ago

Currently getting events list from infiniteList in state but as this is paginated then events will be missing. Wasn't sure where to get a full list of events though. @adzialocha where would the correct fetch route be?

adzialocha commented 4 years ago

Currently getting events list from infiniteList in state but as this is paginated then events will be missing. Wasn't sure where to get a full list of events though. @adzialocha where would the correct fetch route be?

All 'findAll' requests (/events or /places etc.) are paginated. One way I can think of now is to write a new method in the client which loops through all pages until it got them all and return this whole thing to the view. Another way could be to write a new endpoint in the server backend named /map or something which returns a special response made for rendering these sort of maps. Both ways would be totally legit to me!

sandreae commented 4 years ago

Just looked at this again and it was pretty simple to make the popup clickable..... not sure what I was doing before ;-p

sandreae commented 4 years ago

Sorry, this commit history is a mess now... I'll have a go at starting a new branch with clean commits.