Rename _ol_format_GeoJSON_ to GeoJSON
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import _ol_Map_ from '../src/ol/Map.js';
|
||||
import _ol_View_ from '../src/ol/View.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_OSM_ from '../src/ol/source/OSM.js';
|
||||
@@ -143,7 +143,7 @@ function polygonStyleFunction(feature, resolution) {
|
||||
var vectorPolygons = new _ol_layer_Vector_({
|
||||
source: new _ol_source_Vector_({
|
||||
url: 'data/geojson/polygon-samples.geojson',
|
||||
format: new _ol_format_GeoJSON_()
|
||||
format: new GeoJSON()
|
||||
}),
|
||||
style: polygonStyleFunction
|
||||
});
|
||||
@@ -163,7 +163,7 @@ function lineStyleFunction(feature, resolution) {
|
||||
var vectorLines = new _ol_layer_Vector_({
|
||||
source: new _ol_source_Vector_({
|
||||
url: 'data/geojson/line-samples.geojson',
|
||||
format: new _ol_format_GeoJSON_()
|
||||
format: new GeoJSON()
|
||||
}),
|
||||
style: lineStyleFunction
|
||||
});
|
||||
@@ -184,7 +184,7 @@ function pointStyleFunction(feature, resolution) {
|
||||
var vectorPoints = new _ol_layer_Vector_({
|
||||
source: new _ol_source_Vector_({
|
||||
url: 'data/geojson/point-samples.geojson',
|
||||
format: new _ol_format_GeoJSON_()
|
||||
format: new GeoJSON()
|
||||
}),
|
||||
style: pointStyleFunction
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user