http://bluefaqs.com/2016/02/how-to-animate-a-map-location-marker-with-css/ shows a pulsating GPS location blue dot (at the bottom of that page).
Does anyone know how such a particular CSS animation can be shown on an interactive Google API Map, at the user's current GPS location (as opposed to just appearing on a static map)?
I had thought of using How to access Google Maps API v3 marker's DIV and its pixel position? to then position it over the top of the map in a div layer but wasn't sure if that would be the best approach or whether someone had already come up with an alternative.
var scale = Math.pow(2, map.getZoom());
var nw = new google.maps.LatLng(
map.getBounds().getNorthEast().lat(),
map.getBounds().getSouthWest().lng()
);
var worldCoordinateNW = map.getProjection().fromLatLngToPoint(nw);
var worldCoordinate = map.getProjection().fromLatLngToPoint(marker.getPosition());
var pixelOffset = new google.maps.Point(
Math.floor((worldCoordinate.x - worldCoordinateNW.x) * scale),
Math.floor((worldCoordinate.y - worldCoordinateNW.y) * scale)
);