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:
@@ -161,7 +161,7 @@ var vectorSource = new ol.source.GeoJSON(
|
||||
|
||||
var vectorLayer = new ol.layer.Vector({
|
||||
source: vectorSource,
|
||||
styleFunction: styleFunction
|
||||
style: styleFunction
|
||||
});
|
||||
|
||||
var overlayStyle = (function() {
|
||||
|
||||
Reference in New Issue
Block a user