Rename _ol_geom_Point_ to Point
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import _ol_Feature_ from '../src/ol/Feature.js';
|
||||
import _ol_Map_ from '../src/ol/Map.js';
|
||||
import _ol_View_ from '../src/ol/View.js';
|
||||
import _ol_geom_Point_ from '../src/ol/geom/Point.js';
|
||||
import Point from '../src/ol/geom/Point.js';
|
||||
import _ol_geom_LineString_ from '../src/ol/geom/LineString.js';
|
||||
import _ol_geom_Polygon_ from '../src/ol/geom/Polygon.js';
|
||||
import _ol_interaction_Draw_ from '../src/ol/interaction/Draw.js';
|
||||
@@ -130,7 +130,7 @@ function removeElementFeature(source, element) {
|
||||
|
||||
function nodeToFeature(node) {
|
||||
var feature = new _ol_Feature_({
|
||||
geometry: new _ol_geom_Point_(node.coordinate),
|
||||
geometry: new Point(node.coordinate),
|
||||
node: node
|
||||
});
|
||||
feature.setId(node.id);
|
||||
|
||||
Reference in New Issue
Block a user