diff --git a/examples/icon.js b/examples/icon.js index b21f5100e2..c97aca9a3b 100644 --- a/examples/icon.js +++ b/examples/icon.js @@ -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' }) })];