Rename _ol_source_Vector_ to VectorSource
This commit is contained in:
@@ -7,7 +7,7 @@ import LineString from '../../../../src/ol/geom/LineString.js';
|
||||
import Point from '../../../../src/ol/geom/Point.js';
|
||||
import Polygon from '../../../../src/ol/geom/Polygon.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';
|
||||
@@ -70,7 +70,7 @@ describe('ol.rendering.layer.Vector', function() {
|
||||
describe('vector layer', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
source = new _ol_source_Vector_();
|
||||
source = new VectorSource();
|
||||
});
|
||||
|
||||
it('renders opacity correctly with the canvas renderer', function(done) {
|
||||
@@ -274,7 +274,7 @@ describe('ol.rendering.layer.Vector', function() {
|
||||
|
||||
it('renders fill/stroke batches correctly with the canvas renderer', function(done) {
|
||||
createMap('canvas');
|
||||
source = new _ol_source_Vector_({
|
||||
source = new VectorSource({
|
||||
overlaps: false
|
||||
});
|
||||
addPolygon(100);
|
||||
@@ -300,7 +300,7 @@ describe('ol.rendering.layer.Vector', function() {
|
||||
|
||||
it('renders stroke batches correctly with the canvas renderer', function(done) {
|
||||
createMap('canvas');
|
||||
source = new _ol_source_Vector_({
|
||||
source = new VectorSource({
|
||||
overlaps: false
|
||||
});
|
||||
addLineString(100);
|
||||
@@ -327,7 +327,7 @@ describe('ol.rendering.layer.Vector', function() {
|
||||
var color;
|
||||
function createSource(overlaps) {
|
||||
color = '#3399CC';
|
||||
source = new _ol_source_Vector_({
|
||||
source = new VectorSource({
|
||||
overlaps: overlaps
|
||||
});
|
||||
addPolygon(720);
|
||||
@@ -380,7 +380,7 @@ describe('ol.rendering.layer.Vector', function() {
|
||||
var color;
|
||||
function createSource(overlaps) {
|
||||
color = '#3399CC';
|
||||
source = new _ol_source_Vector_({
|
||||
source = new VectorSource({
|
||||
overlaps: overlaps
|
||||
});
|
||||
addLineString(720);
|
||||
@@ -467,7 +467,7 @@ describe('ol.rendering.layer.Vector', function() {
|
||||
var feature = format.readFeature(json);
|
||||
|
||||
var layer = new VectorLayer({
|
||||
source: new _ol_source_Vector_({
|
||||
source: new VectorSource({
|
||||
features: [feature]
|
||||
}),
|
||||
style: new _ol_style_Style_({
|
||||
@@ -492,7 +492,7 @@ describe('ol.rendering.layer.Vector', function() {
|
||||
var layer, map3;
|
||||
|
||||
beforeEach(function() {
|
||||
var src = new _ol_source_Vector_({
|
||||
var src = new VectorSource({
|
||||
features: [
|
||||
new Feature(new Polygon([[
|
||||
[-22, 58],
|
||||
@@ -579,7 +579,7 @@ describe('ol.rendering.layer.Vector', function() {
|
||||
describe('decluttering', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
source = new _ol_source_Vector_();
|
||||
source = new VectorSource();
|
||||
});
|
||||
|
||||
it('declutters text', function(done) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import Point from '../../../../src/ol/geom/Point.js';
|
||||
import VectorLayer from '../../../../src/ol/layer/Vector.js';
|
||||
import _ol_layer_VectorTile_ from '../../../../src/ol/layer/VectorTile.js';
|
||||
import _ol_obj_ from '../../../../src/ol/obj.js';
|
||||
import _ol_source_Vector_ from '../../../../src/ol/source/Vector.js';
|
||||
import VectorSource from '../../../../src/ol/source/Vector.js';
|
||||
import _ol_source_VectorTile_ from '../../../../src/ol/source/VectorTile.js';
|
||||
import _ol_style_Circle_ from '../../../../src/ol/style/Circle.js';
|
||||
import _ol_style_Fill_ from '../../../../src/ol/style/Fill.js';
|
||||
@@ -96,7 +96,7 @@ describe('ol.rendering.layer.VectorTile', function() {
|
||||
|
||||
it('renders rotated view correctly with vector layer on top', function(done) {
|
||||
createMap('canvas');
|
||||
var vectorSource = new _ol_source_Vector_({
|
||||
var vectorSource = new VectorSource({
|
||||
features: [
|
||||
new Feature(new Point([1825727.7316762917, 6143091.089223046]))
|
||||
]
|
||||
|
||||
@@ -3,7 +3,7 @@ import Point from '../../../src/ol/geom/Point.js';
|
||||
import Map from '../../../src/ol/Map.js';
|
||||
import View from '../../../src/ol/View.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';
|
||||
|
||||
|
||||
describe('ol.rendering.Map', function() {
|
||||
@@ -11,7 +11,7 @@ describe('ol.rendering.Map', function() {
|
||||
var map;
|
||||
function createMap(renderer) {
|
||||
var vectorLayer = new VectorLayer({
|
||||
source: new _ol_source_Vector_({
|
||||
source: new VectorSource({
|
||||
features: [new Feature({
|
||||
geometry: new Point([0, 0])
|
||||
})]
|
||||
|
||||
@@ -4,7 +4,7 @@ import MultiPoint from '../../../../src/ol/geom/MultiPoint.js';
|
||||
import Map from '../../../../src/ol/Map.js';
|
||||
import View from '../../../../src/ol/View.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_Style_ from '../../../../src/ol/style/Style.js';
|
||||
@@ -16,7 +16,7 @@ describe('ol.rendering.style.Circle', function() {
|
||||
var map, vectorSource;
|
||||
|
||||
function createMap(renderer) {
|
||||
vectorSource = new _ol_source_Vector_();
|
||||
vectorSource = new VectorSource();
|
||||
var vectorLayer = new VectorLayer({
|
||||
source: vectorSource
|
||||
});
|
||||
|
||||
@@ -3,7 +3,7 @@ import Point from '../../../../src/ol/geom/Point.js';
|
||||
import Map from '../../../../src/ol/Map.js';
|
||||
import View from '../../../../src/ol/View.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_Icon_ from '../../../../src/ol/style/Icon.js';
|
||||
import _ol_style_Style_ from '../../../../src/ol/style/Style.js';
|
||||
|
||||
@@ -22,7 +22,7 @@ describe('ol.rendering.style.Icon', function() {
|
||||
};
|
||||
|
||||
function createMap(renderer, width, height) {
|
||||
vectorSource = new _ol_source_Vector_();
|
||||
vectorSource = new VectorSource();
|
||||
var vectorLayer = new VectorLayer({
|
||||
source: vectorSource
|
||||
});
|
||||
|
||||
@@ -3,7 +3,7 @@ import LineString from '../../../../src/ol/geom/LineString.js';
|
||||
import Map from '../../../../src/ol/Map.js';
|
||||
import View from '../../../../src/ol/View.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_Style_ from '../../../../src/ol/style/Style.js';
|
||||
import _ol_style_Stroke_ from '../../../../src/ol/style/Stroke.js';
|
||||
|
||||
@@ -13,7 +13,7 @@ describe('ol.rendering.style.LineString', function() {
|
||||
var map, vectorSource;
|
||||
|
||||
function createMap(renderer, opt_pixelRatio) {
|
||||
vectorSource = new _ol_source_Vector_();
|
||||
vectorSource = new VectorSource();
|
||||
var vectorLayer = new VectorLayer({
|
||||
source: vectorSource
|
||||
});
|
||||
|
||||
@@ -3,7 +3,7 @@ import Polygon from '../../../../src/ol/geom/Polygon.js';
|
||||
import Map from '../../../../src/ol/Map.js';
|
||||
import View from '../../../../src/ol/View.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_Fill_ from '../../../../src/ol/style/Fill.js';
|
||||
import _ol_style_Style_ from '../../../../src/ol/style/Style.js';
|
||||
import _ol_style_Stroke_ from '../../../../src/ol/style/Stroke.js';
|
||||
@@ -16,7 +16,7 @@ describe('ol.rendering.style.Polygon', function() {
|
||||
function createMap(renderer, opt_size) {
|
||||
var size = opt_size || 50;
|
||||
|
||||
vectorSource = new _ol_source_Vector_();
|
||||
vectorSource = new VectorSource();
|
||||
var vectorLayer = new VectorLayer({
|
||||
source: vectorSource
|
||||
});
|
||||
|
||||
@@ -3,7 +3,7 @@ import Point from '../../../../src/ol/geom/Point.js';
|
||||
import Map from '../../../../src/ol/Map.js';
|
||||
import View from '../../../../src/ol/View.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_Fill_ from '../../../../src/ol/style/Fill.js';
|
||||
import _ol_style_RegularShape_ from '../../../../src/ol/style/RegularShape.js';
|
||||
import _ol_style_Style_ from '../../../../src/ol/style/Style.js';
|
||||
@@ -15,7 +15,7 @@ describe('ol.rendering.style.RegularShape', function() {
|
||||
var map, vectorSource;
|
||||
|
||||
function createMap(renderer) {
|
||||
vectorSource = new _ol_source_Vector_();
|
||||
vectorSource = new VectorSource();
|
||||
var vectorLayer = new VectorLayer({
|
||||
source: vectorSource
|
||||
});
|
||||
|
||||
@@ -7,7 +7,7 @@ import Polygon from '../../../../src/ol/geom/Polygon.js';
|
||||
import Map from '../../../../src/ol/Map.js';
|
||||
import View from '../../../../src/ol/View.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_Text_ from '../../../../src/ol/style/Text.js';
|
||||
import _ol_style_Fill_ from '../../../../src/ol/style/Fill.js';
|
||||
import _ol_style_Style_ from '../../../../src/ol/style/Style.js';
|
||||
@@ -19,7 +19,7 @@ describe('ol.rendering.style.Text', function() {
|
||||
|
||||
function createMap(renderer, opt_pixelRatio) {
|
||||
var pixelRatio = opt_pixelRatio || 1;
|
||||
vectorSource = new _ol_source_Vector_();
|
||||
vectorSource = new VectorSource();
|
||||
var vectorLayer = new VectorLayer({
|
||||
source: vectorSource
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user