Merge pull request #6095 from tchandelle/line-arrows
LineString Arrows example: rotate with the view
This commit is contained in:
@@ -38,7 +38,7 @@ var styleFunction = function(feature) {
|
|||||||
image: new ol.style.Icon({
|
image: new ol.style.Icon({
|
||||||
src: 'data/arrow.png',
|
src: 'data/arrow.png',
|
||||||
anchor: [0.75, 0.5],
|
anchor: [0.75, 0.5],
|
||||||
rotateWithView: false,
|
rotateWithView: true,
|
||||||
rotation: -rotation
|
rotation: -rotation
|
||||||
})
|
})
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user