Rename _ol_source_Vector_ to VectorSource

This commit is contained in:
Tim Schaub
2018-01-08 10:06:23 -07:00
parent 45c6e43b42
commit ca6ea355e6
94 changed files with 279 additions and 279 deletions

View File

@@ -3,7 +3,7 @@ import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import Point from '../src/ol/geom/Point.js';
import VectorLayer from '../src/ol/layer/Vector.js';
import _ol_source_Vector_ from '../src/ol/source/Vector.js';
import VectorSource from '../src/ol/source/Vector.js';
import _ol_style_Circle_ from '../src/ol/style/Circle.js';
import _ol_style_Fill_ from '../src/ol/style/Fill.js';
import _ol_style_Stroke_ from '../src/ol/style/Stroke.js';
@@ -15,7 +15,7 @@ import _ol_style_Style_ from '../src/ol/style/Style.js';
// Every layer has one feature that is styled with a circle, together the
// features form the corners of an equilateral triangle and their styles overlap
var redLayer = new VectorLayer({
source: new _ol_source_Vector_({
source: new VectorSource({
features: [new Feature(new Point([0, 0]))]
}),
style: new _ol_style_Style_({
@@ -32,7 +32,7 @@ var redLayer = new VectorLayer({
})
});
var greenLayer = new VectorLayer({
source: new _ol_source_Vector_({
source: new VectorSource({
// 433.013 is roughly 250 * Math.sqrt(3)
features: [new Feature(new Point([250, 433.013]))]
}),
@@ -50,7 +50,7 @@ var greenLayer = new VectorLayer({
})
});
var blueLayer = new VectorLayer({
source: new _ol_source_Vector_({
source: new VectorSource({
features: [new Feature(new Point([500, 0]))]
}),
style: new _ol_style_Style_({