Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

setCenter: not a LatLng or LatLngLiteral with finite coordinates: in property lat: not a number

//The error comes because you pass the value as string:
var lat = document.getElementById('lat').value;

//you need to set it as float:
var lat = parseFloat(document.getElementById('lat').value);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #LatLng #LatLngLiteral #finite #property #number
ADD COMMENT
Topic
Name
2+1 =