gramps-project / gramps-web

Frontend for Gramps Web

Home Page:https://www.grampsweb.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imported data causing Map page to fail

andrewvaughan opened this issue · comments

I imported GED data from another application, which seems to have worked swimmingly, except something is causing the Maps page to fail.

The error in the console when loading the map is:

Uncaught (in promise) Error: Invalid LatLng object: (NaN, NaN)
    at new Lp (3124eda5.js:3456:7237)
    at J.updated (3124eda5.js:3468:1699)
    at J._$AE (3124eda5.js:2:6340)
    at J.performUpdate (3124eda5.js:2:6120)
    at J.scheduleUpdate (3124eda5.js:2:5702)
    at J._$EC (3124eda5.js:2:5610)

I looked through all of my Places and there doesn't seem to be anything malformed in there; however, there are definitely informal places in the list that would likely result in a null search result from any API being used to look up lat/long.

My guess is that the Maps feature does not adequately manage when lat/long return NaN - my guess from a parseFloat or similar call. When this occurs, the entire Maps page fails to load, as JS execution halts.