I am trying to track a car that outputs GPS coordinates to me. I have no issue grabbing the coordinates but I do have trouble getting the marker to move from its initial state. I've looked online and could only find examples for marker movement in the v2 JavaScript API. I however would like to use v3.5 or higher. I'd also like to refrain from using any3rd party scripts.
So I need help displaying a marker and then having the marker move with the v3 Javascript API. I currently have something like this (the variables are defined globally): function updateMarker(){ car = getPos(1); carLatlng = new google.maps.LatLng(carLatitude, carLongitude); carmarker = new google.maps.Marker({ position: carLatlng, }); setTimeout(updateMarker(), 3000); } Any help would be greatly appreciated! Thanks in advance!! -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/mz5XNmIOAoUJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.