fablabbcn / fablabs.io

The platform of the global Fab Labs Network
https://fablabs.io
GNU Affero General Public License v3.0
67 stars 33 forks source link

Lab location field broken in Production #606

Closed s-ol closed 8 months ago

s-ol commented 2 years ago

Describe the bug When adding or editing a Lab, in the "Lab Location" section the field in "Step 1" does not work. Typing anything into it does not cause a map to appear or the "Step 2" fields to be populated as the help text suggests.

This causes the long/lat fields of labs to be NULL, resulting in broken maps in the lab list as well.

To Reproduce Steps to reproduce the behavior:

  1. Create a new lab or click "Edit Lab Details" on an existing Lab
  2. Scroll down to 'Lab Location'
  3. Type (the beginning of) an address into the field 'Step 1'
  4. Nothing happens

Expected behavior A map should appear and/or the other fields should be populated.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context There is no helpful errors in the JS console. To see an affected lab without coordinates, take a look at https://fablabs.io/labs/unitrento

sergioxdev commented 1 year ago

Hi everybody

I confirm, I realized that our fablab is not present on the map, and trying to "Edit Lab Details" the map is not displayed and no error is returned in the console. https://fablabs.io/labs/fablabagrigento

MacTwister commented 8 months ago

Had some availability, and decided to investigate this issue as it seems to be widespread.

I resolved the problem, which brings back the autocomplete/map-marker functionality to the lab form. When you modify your lab, you can use “Step 1” to change the marker's location. The lat/lng values are also now visible on the form.

Next will create a script loop through all labs adding lat/lng values to all labs missing them that have address info set.