6

Is there a way to to enable this on my map? enter image description here

All the posts that I have searched explain only how to calculate the bearing... Doesn't Google Maps API include that?

thanks!

Ghost
  • 133
  • 1
  • 8

1 Answers1

0

You can use a symbol, for example

google.maps.SymbolPath.FORWARD_CLOSED_ARROW

Then set its rotation to the heading value.

You may need to provide your own SVG file if you want the fading effect.

API here https://developers.google.com/maps/documentation/javascript/symbols

intotecho
  • 4,925
  • 3
  • 39
  • 54