seven1m/onebody

Map not loading

draft13 opened this issue · 1 comments

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)

screen shot 2017-07-28 at 1 08 35 pm

Interestingly, there are no other places on the site that shows a map, that I can tell.

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.