Rotate the arrows with the view

This commit is contained in:
Thomas Chandelle
2016-11-09 09:42:08 +01:00
parent 77ec54e245
commit 5b00095bd0

View File

@@ -38,7 +38,7 @@ var styleFunction = function(feature) {
image: new ol.style.Icon({
src: 'data/arrow.png',
anchor: [0.75, 0.5],
rotateWithView: false,
rotateWithView: true,
rotation: -rotation
})
}));