Adding stuff to google maps
Demo code:
const coordinates = // array of lat, lngconst flightPath = new google.maps.Polyline({path: coordinates,geodesic: true,strokeColor: '#73B9FF',strokeOpacity: 1.0,strokeWeight: 4,icons: [{icon: {path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW},offset: '100%'}],map: this.theMap,
Useful links
Google maps doc on custom symbols
Post on custom google maps markers
No comments:
Post a Comment