Map not loading
draft13 opened this issue · 1 comments
draft13 commented
Setup using AMI, ran updates on the machine. The site (https://my.cfl.church) is loading/working fine.
However, when loading the map for the directory, I get this in Chrome's console:
application-83b4d8c….js:8 Uncaught TypeError: Cannot read property 'lat' of undefined
at o.LatLngBounds.getNorth (application-83b4d8c….js:8)
at o.LatLngBounds.getNorthWest (application-83b4d8c….js:8)
at e.getBoundsZoom (application-83b4d8c….js:8)
at e.fitBounds (application-83b4d8c….js:8)
at Object.success (application-83b4d8c….js:13)
at u (application-83b4d8c….js:2)
at Object.fireWith [as resolveWith] (application-83b4d8c….js:2)
at i (application-83b4d8c….js:3)
at XMLHttpRequest.n (application-83b4d8c….js:3)
Interestingly, there are no other places on the site that shows a map, that I can tell.
draft13 commented
So, I was able to fix. Turns out, one must add the address correctly. Having the city/state reversed was the culprit. And also, on the group pages, the locations cannot be on one line, as well, as a comma after the state, e.g., "Longwood, FL, 32750" does not work.