I am learning openlayers3 with ol v3.20.1
I've got to the point in the book, where I can read/write GeoJSON with StaticVector, but the following code:
var statVec = new ol.layer.Vector({
source: new ol.source.StaticVector({
format: new ol.format.GeoJSON(),
projection: 'EPSG:3857'
})
});
errors out with:
TypeError: undefined is not a constructor (evaluating 'new ol.source.StaticVector({ format: new ol.format.GeoJSON(), projection: 'EPSG:3857' })') global code
I realize, there was an API change, since the book came out, but I can't find what StaticVector was replaced with.