Rename _ol_format_GeoJSON_ to GeoJSON
This commit is contained in:
@@ -2,7 +2,7 @@ import _ol_Map_ from '../src/ol/Map.js';
|
||||
import _ol_View_ from '../src/ol/View.js';
|
||||
import _ol_format_filter_ from '../src/ol/format/filter.js';
|
||||
import _ol_format_WFS_ from '../src/ol/format/WFS.js';
|
||||
import _ol_format_GeoJSON_ from '../src/ol/format/GeoJSON.js';
|
||||
import GeoJSON from '../src/ol/format/GeoJSON.js';
|
||||
import _ol_layer_Tile_ from '../src/ol/layer/Tile.js';
|
||||
import _ol_layer_Vector_ from '../src/ol/layer/Vector.js';
|
||||
import _ol_source_BingMaps_ from '../src/ol/source/BingMaps.js';
|
||||
@@ -59,7 +59,7 @@ fetch('https://ahocevar.com/geoserver/wfs', {
|
||||
}).then(function(response) {
|
||||
return response.json();
|
||||
}).then(function(json) {
|
||||
var features = new _ol_format_GeoJSON_().readFeatures(json);
|
||||
var features = new GeoJSON().readFeatures(json);
|
||||
vectorSource.addFeatures(features);
|
||||
map.getView().fit(vectorSource.getExtent());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user