Merge pull request #6095 from tchandelle/line-arrows

LineString Arrows example: rotate with the view
This commit is contained in:
Andreas Hocevar
2016-11-09 10:44:21 +01:00
committed by GitHub

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
})
}));