dapriett / nativescript-google-maps-sdk

Cross Platform Google Maps SDK for Nativescript
MIT License
244 stars 164 forks source link

Arrow symbol #380

Open sedrak1987 opened 4 years ago

sedrak1987 commented 4 years ago

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