uaem-na / donations-tracker

General-purpose distribution platform developed for the McGill chapter of the Universities Allied for Essential Medicine.
https://donations-tracker-dev.uaem.org
8 stars 1 forks source link

Map not Loading on each Offer and Request post #72

Closed uaemmcgill closed 2 months ago

uaemmcgill commented 11 months ago
Screen Shot 2023-09-19 at 7 51 37 PM

The map is not loading for the individual Offer and Request posts. I've tried this with a random postal code (may not exist) and a valid postal code in Montréal (H3A 2B4 and H3A2B4, i.e. with and without space).

shjryan commented 10 months ago

This most likely has something to do with geocoding postal code not working properly, and thus the app is unable to display the proper coordinates (?). New issue will be created once confirmed.

Potentially blocks: If location information is invalid when creating a post, alert the user that it is invalid, and prevent post creation

iam-weijie commented 3 months ago

The map is present and working for the individual Offer and Request posts (just zoom out to see the full map). However, with each new post created (with postal codes like H3A2B4, without space), its coordinates are set automatically to [0,0], resulting in the map pointing into the Atlantic Ocean. Most likely has something to do with api not working properly, and thus the app is unable to fetch the proper geocoded coordinates.

P.S. I've tried to create posts with space in between the postal codes, there is the presence of an alert about invalid postal codes and prevention of post creation as a result.

shjryan commented 2 months ago

Resolved on GCP.