var lineSymbol = {
path: google.maps.SymbolPath.FORWARD_OPEN_ARROW
};
// Create the polyline and add the symbol via the 'icons' property.
var line = new google.maps.Polyline({
path: [{lat:25.396230138028827, lng:79.85009765625},
{lat:20.623081791311755, lng:79.85009765625}],
icons: [{
icon: lineSymbol,
offset: '100%'
}],
map: map
});
How implement this part icons: [{ icon: lineSymbol, offset: '100%'}], ?
I already have polyline.geodesic = true;polyline.width = 2;but didn't get icons option in api
var lineSymbol = {
path: google.maps.SymbolPath.FORWARD_OPEN_ARROW
};
// Create the polyline and add the symbol via the 'icons' property.
var line = new google.maps.Polyline({
path: [{lat:25.396230138028827, lng:79.85009765625},
{lat:20.623081791311755, lng:79.85009765625}],
icons: [{
icon: lineSymbol,
offset: '100%' }],
map: map
});
How implement this part icons: [{ icon: lineSymbol, offset: '100%'}], ? I already have polyline.geodesic = true;polyline.width = 2;but didn't get icons option in api