Use style option in vector layer examples
Providing a styleFunction option still works because the layer property is still named styleFunction.
This commit is contained in:
@@ -63,7 +63,7 @@ var map = new ol.Map({
|
||||
}),
|
||||
new ol.layer.Vector({
|
||||
source: vectorSource,
|
||||
styleFunction: styleFunction
|
||||
style: styleFunction
|
||||
})
|
||||
],
|
||||
renderer: 'canvas',
|
||||
|
||||
Reference in New Issue
Block a user