Use anchorXUnits and anchorYUnits in icon example
This commit is contained in:
1 parent
a0a94414dd
commit
09e5574350
1 file changed
+3
@@ -19,6 +19,9 @@ var raster = new ol.layer.Tile({
|
||||
|
||||
var styleArray = [new ol.style.Style({
|
||||
image: new ol.style.Icon({
|
||||
anchor: [0.5, 46],
|
||||
anchorXUnits: 'fraction',
|
||||
anchorYUnits: 'pixels',
|
||||
src: 'data/icon.png'
|
||||
})
|
||||
})];
|
||||
|
||||
Reference in new issue
Block a user