Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 432
Jaec Avatar asked Apr 02 '11 06:04

Jaec


1 Answers

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

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

like image 148
awmross Avatar answered Sep 28 '22 10:09

awmross