I am trying to add an image/icon style along the lineString which is animating,but image/icon style is not getting added.
Here is my style for line
var lineStyle = new ol.style.Style({
image: new ol.style.Icon(({
opacity: 1,
size: 20,
src: '/Images/Leaflet.custom.marker/red_animation_marker.png'
})),
stroke: new ol.style.Stroke({
color: 'black',
width: 5,
lineDash: [10,5],
})
});
Refer following link animating line for current output.
What I am trying to achieve is, there should be a marker or pointer on the head of line which will indicate that line is following certain path, an arrow icon or style.