I am new to google-maps. I am working on a project where i have to show a polyline with an arrow head. The size of the polyline is perfect but the arrow appears too big. i am simply using this code.
var lineSymbol = {
path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW,
scale: 2
};
var a = new google.maps.LatLng(lat1, lon1);
var b = new google.maps.LatLng(lat2,lon2);
var myTrip = [a, b];
var flightPath = new google.maps.Polyline({
path: myTrip,
icons: [{
icon: lineSymbol,
offset: '100%'
}],
strokeColor: "#8B0000",
strokeOpacity: 0.8,
strokeWeight: 6
});
These links below are the ones i have seen but they are not close to what i need :)
The links i have seen are
- Google Maps :: Changing icon based on zoom level
- ^I dont want to change the icon
- Google maps V3: prevent marker scaling
- ^I have to zoom in to see the line clearly
- https://developers.google.com/maps/articles/toomanymarkers?hl=da
- ^Not exactly what i was looking for
- Google Maps v3 fitBounds() Zoom too close for single marker
- ^Not what i need
- Google Maps API Zoom in and out marke size change
- ^May be possible duplicate but no one answered that either