SyntaxFix
Write A Post
Hire A Developer
Questions
var lat = homeMarker.getPosition().lat(); var lng = homeMarker.getPosition().lng();
See the google.maps.LatLng docs and google.maps.Marker getPosition().
getPosition()