vendredi 1 février 2019

Laravel Google Map - Old form values not accepted

I am saving a longitude and latitude from Google Maps on form submit, I am trying to save the long and lat on validation fail using old like this..

map.setCenter({ lat:, lng: });

This is giving me...

InvalidValueError: setCenter: not a LatLng or LatLngLiteral: in property lat: not a number

When I examine the source I can see that the longitude and latitude are returned correctly, but Google Maps is not seeing them as a number.

Do I need to cast them as integers first?



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2Sm0rIf
via IFTTT

Aucun commentaire:

Enregistrer un commentaire