I want to add custom style to polyline using openlayers, How can I add custom style?
var coord = "atmwRgnhG_nAhz@i@Fk@Og@Ee@DoK|C^|ABr@Iz@S`@mApA_Az@kHbHcNxLgDtC";
var route = new Polyline().readGeometry(coord, {
dataProjection: 'EPSG:4326',
featureProjection: 'EPSG:3857',
});
var featureList = new Feature({
type: 'route',
geometry: route,
});
feature.setStyle(myStyle)
will add style to feature.code snippet: