Merge pull request #4535 from ahocevar/osm-example-style

Do not use an array for a single style
This commit is contained in:
Andreas Hocevar
2015-12-09 10:50:31 +01:00

View File

@@ -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: [