diff --git a/examples/osm-vector-tiles.js b/examples/osm-vector-tiles.js index e1d2fda37b..0631e17ec0 100644 --- a/examples/osm-vector-tiles.js +++ b/examples/osm-vector-tiles.js @@ -18,18 +18,16 @@ var roadColor = { 'highway': '#f39' }; var landuseStyleCache = {}; -var buildingStyle = [ - new ol.style.Style({ - fill: new ol.style.Fill({ - color: '#666', - opacity: 0.4 - }), - stroke: new ol.style.Stroke({ - color: '#444', - width: 1 - }) +var buildingStyle = new ol.style.Style({ + fill: new ol.style.Fill({ + color: '#666', + opacity: 0.4 + }), + stroke: new ol.style.Stroke({ + color: '#444', + width: 1 }) -]; +}); var map = new ol.Map({ layers: [