Refactor ol.format.GeoJSON to implement ol.format.IReader

This commit is contained in:
Tom Payne
2013-11-09 00:02:26 +01:00
parent 2d7c26e3e5
commit 5bca792288
3 changed files with 17 additions and 22 deletions

View File

@@ -44,7 +44,7 @@ var styleFunction = function(feature) {
};
var vectorSource = new ol.source.Vector();
ol.format.GeoJSON.readObject({
new ol.format.GeoJSON().readObject({
'type': 'FeatureCollection',
'features': [
{