I have a page where I'm trying to simulate ship locations on a map. Some of these ships are at a location a percentage of the way on a polyline, others are are at a single point marker.
With the ships that are a percentage of the way along a polyline, I'm able to display the icon correctly. What I'd like to do is attach events purely on that icon, and not on the whole polyline.
My code is at http://www.cleancruising.com.au/map_allShipLoc2.asp
I've also tried to alternatively calculate the LatLng of the ship location by using google.maps.geometry.spherical.computeDistanceBetween, but as this uses spherical geometry, the points don't translate properly on a flat map.