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_Vector_ from '../src/ol/layer/Vector.js';
|
||||
import _ol_source_Vector_ from '../src/ol/source/Vector.js';
|
||||
import _ol_style_Fill_ from '../src/ol/style/Fill.js';
|
||||
@@ -32,7 +32,7 @@ var style = new _ol_style_Style_({
|
||||
var vectorLayer = new _ol_layer_Vector_({
|
||||
source: new _ol_source_Vector_({
|
||||
url: 'data/geojson/countries.geojson',
|
||||
format: new _ol_format_GeoJSON_()
|
||||
format: new GeoJSON()
|
||||
}),
|
||||
style: function(feature) {
|
||||
style.getText().setText(feature.get('name'));
|
||||
|
||||
Reference in New Issue
Block a user