You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initializing the widget in admin form, latitude and longitude are set to null, which upsets google map api and raise Uncaught InvalidValueError: not an Object
I have the same issue, and I found that the problem is when the latitude and longitude variables are null.
So one posibility to fix it until you have a better solution is to initializate this variables with a default value in the lines 39 and 40 of the script, like this:
latitude = parseFloat($latitudeField.val()) || parseFloat(40.4379543),
This is not the better solution but at least it works!
When initializing the widget in admin form, latitude and longitude are set to null, which upsets google map api and raise
Uncaught InvalidValueError: not an Object
Code exit point is here
https://github.com/philippbosch/django-geoposition/blob/master/geoposition/static/geoposition/geoposition.js#L125
The text was updated successfully, but these errors were encountered: