Rename _ol_geom_Point_ to Point
This commit is contained in:
@@ -1,7 +1,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_layer_Vector_ from '../src/ol/layer/Vector.js';
|
||||
import _ol_source_Vector_ from '../src/ol/source/Vector.js';
|
||||
import _ol_style_Circle_ from '../src/ol/style/Circle.js';
|
||||
@@ -16,7 +16,7 @@ import _ol_style_Style_ from '../src/ol/style/Style.js';
|
||||
// features form the corners of an equilateral triangle and their styles overlap
|
||||
var redLayer = new _ol_layer_Vector_({
|
||||
source: new _ol_source_Vector_({
|
||||
features: [new _ol_Feature_(new _ol_geom_Point_([0, 0]))]
|
||||
features: [new _ol_Feature_(new Point([0, 0]))]
|
||||
}),
|
||||
style: new _ol_style_Style_({
|
||||
image: new _ol_style_Circle_({
|
||||
@@ -34,7 +34,7 @@ var redLayer = new _ol_layer_Vector_({
|
||||
var greenLayer = new _ol_layer_Vector_({
|
||||
source: new _ol_source_Vector_({
|
||||
// 433.013 is roughly 250 * Math.sqrt(3)
|
||||
features: [new _ol_Feature_(new _ol_geom_Point_([250, 433.013]))]
|
||||
features: [new _ol_Feature_(new Point([250, 433.013]))]
|
||||
}),
|
||||
style: new _ol_style_Style_({
|
||||
image: new _ol_style_Circle_({
|
||||
@@ -51,7 +51,7 @@ var greenLayer = new _ol_layer_Vector_({
|
||||
});
|
||||
var blueLayer = new _ol_layer_Vector_({
|
||||
source: new _ol_source_Vector_({
|
||||
features: [new _ol_Feature_(new _ol_geom_Point_([500, 0]))]
|
||||
features: [new _ol_Feature_(new Point([500, 0]))]
|
||||
}),
|
||||
style: new _ol_style_Style_({
|
||||
image: new _ol_style_Circle_({
|
||||
|
||||
Reference in New Issue
Block a user