Styles for rendering features in OpenLayers 3 are defined as:
new ol.style.Style({
image: new ol.style.Circle({
radius: 6,
stroke: new ol.style.Stroke({
color: 'white',
width: 2
}),
fill: new ol.style.Fill({
color: 'green'
})
})
})
I would like to define my styles in JSON file, not in code. Is there any way how to load styles from JSON? I could easily load attributes like "color" : "green"
, but I cannot load something like new ol.style.Fill
...
No comments:
Post a Comment