How to create direction arrows for my polylines in Google Maps (V3)?

Jaec picture Jaec · Apr 2, 2011 · Viewed 26.1k times · Source

I have routes as Google Maps Polylines in my project (an example, http://rutasgdl.com/rutas/626-2 ) and I want to add direction arrows to the routes. I want something like this (sadly, it is for Google Maps V2) http://wtp2.appspot.com/ArrowLine.htm

Can you point me in the right direction in order to achieve this? Regards.

Answer

awmross picture awmross · Jan 30, 2013

The Google Maps API now supports this natively (as of July 2012).

https://developers.google.com/maps/documentation/javascript/symbols#add_to_polyline