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

@@ -4,7 +4,7 @@ import Event from '../../../../src/ol/events/Event.js';
import EventTarget from '../../../../src/ol/events/EventTarget.js';
import GeoJSON from '../../../../src/ol/format/GeoJSON.js';
import DragAndDrop from '../../../../src/ol/interaction/DragAndDrop.js';
import _ol_source_Vector_ from '../../../../src/ol/source/Vector.js';
import VectorSource from '../../../../src/ol/source/Vector.js';
where('FileReader').describe('ol.interaction.DragAndDrop', function() {
var viewport, map, interaction;
@@ -36,7 +36,7 @@ where('FileReader').describe('ol.interaction.DragAndDrop', function() {
});
it('accepts a source option', function() {
var source = new _ol_source_Vector_();
var source = new VectorSource();
var drop = new DragAndDrop({
formatConstructors: [GeoJSON],
source: source
@@ -136,7 +136,7 @@ where('FileReader').describe('ol.interaction.DragAndDrop', function() {
});
it('adds dropped features to a source', function(done) {
var source = new _ol_source_Vector_();
var source = new VectorSource();
var drop = new DragAndDrop({
formatConstructors: [GeoJSON],
source: source

View File

@@ -5,7 +5,7 @@ import DragRotateAndZoom from '../../../../src/ol/interaction/DragRotateAndZoom.
import Interaction from '../../../../src/ol/interaction/Interaction.js';
import VectorLayer from '../../../../src/ol/layer/Vector.js';
import _ol_pointer_PointerEvent_ from '../../../../src/ol/pointer/PointerEvent.js';
import _ol_source_Vector_ from '../../../../src/ol/source/Vector.js';
import VectorSource from '../../../../src/ol/source/Vector.js';
describe('ol.interaction.DragRotateAndZoom', function() {
@@ -34,7 +34,7 @@ describe('ol.interaction.DragRotateAndZoom', function() {
style.width = width + 'px';
style.height = height + 'px';
document.body.appendChild(target);
var source = new _ol_source_Vector_();
var source = new VectorSource();
var layer = new VectorLayer({source: source});
interaction = new DragRotateAndZoom();
map = new Map({

View File

@@ -5,7 +5,7 @@ import {fromExtent as polygonFromExtent} from '../../../../src/ol/geom/Polygon.j
import DragZoom from '../../../../src/ol/interaction/DragZoom.js';
import VectorLayer from '../../../../src/ol/layer/Vector.js';
import _ol_render_Box_ from '../../../../src/ol/render/Box.js';
import _ol_source_Vector_ from '../../../../src/ol/source/Vector.js';
import VectorSource from '../../../../src/ol/source/Vector.js';
describe('ol.interaction.DragZoom', function() {
@@ -24,7 +24,7 @@ describe('ol.interaction.DragZoom', function() {
style.width = width + 'px';
style.height = height + 'px';
document.body.appendChild(target);
source = new _ol_source_Vector_();
source = new VectorSource();
var layer = new VectorLayer({source: source});
map = new Map({
target: target,

View File

@@ -16,7 +16,7 @@ import Draw from '../../../../src/ol/interaction/Draw.js';
import Interaction from '../../../../src/ol/interaction/Interaction.js';
import VectorLayer from '../../../../src/ol/layer/Vector.js';
import _ol_pointer_PointerEvent_ from '../../../../src/ol/pointer/PointerEvent.js';
import _ol_source_Vector_ from '../../../../src/ol/source/Vector.js';
import VectorSource from '../../../../src/ol/source/Vector.js';
describe('ol.interaction.Draw', function() {
@@ -34,7 +34,7 @@ describe('ol.interaction.Draw', function() {
style.width = width + 'px';
style.height = height + 'px';
document.body.appendChild(target);
source = new _ol_source_Vector_();
source = new VectorSource();
var layer = new VectorLayer({source: source});
map = new Map({
target: target,

View File

@@ -12,7 +12,7 @@ import Polygon from '../../../../src/ol/geom/Polygon.js';
import _ol_interaction_Modify_ from '../../../../src/ol/interaction/Modify.js';
import VectorLayer from '../../../../src/ol/layer/Vector.js';
import _ol_pointer_PointerEvent_ from '../../../../src/ol/pointer/PointerEvent.js';
import _ol_source_Vector_ from '../../../../src/ol/source/Vector.js';
import VectorSource from '../../../../src/ol/source/Vector.js';
describe('ol.interaction.Modify', function() {
@@ -41,7 +41,7 @@ describe('ol.interaction.Modify', function() {
})
];
source = new _ol_source_Vector_({
source = new VectorSource({
features: features
});
@@ -180,7 +180,7 @@ describe('ol.interaction.Modify', function() {
it('accepts a source', function() {
var feature = new Feature(
new Point([0, 0]));
var source = new _ol_source_Vector_({features: [feature]});
var source = new VectorSource({features: [feature]});
var modify = new _ol_interaction_Modify_({source: source});
var rbushEntries = modify.rBush_.getAll();
expect(rbushEntries.length).to.be(1);

View File

@@ -9,7 +9,7 @@ import Interaction from '../../../../src/ol/interaction/Interaction.js';
import _ol_interaction_Select_ from '../../../../src/ol/interaction/Select.js';
import VectorLayer from '../../../../src/ol/layer/Vector.js';
import _ol_pointer_PointerEvent_ from '../../../../src/ol/pointer/PointerEvent.js';
import _ol_source_Vector_ from '../../../../src/ol/source/Vector.js';
import VectorSource from '../../../../src/ol/source/Vector.js';
describe('ol.interaction.Select', function() {
@@ -53,7 +53,7 @@ describe('ol.interaction.Select', function() {
type: 'foo'
}));
source = new _ol_source_Vector_({
source = new VectorSource({
features: features
});

View File

@@ -8,7 +8,7 @@ import _ol_interaction_Translate_ from '../../../../src/ol/interaction/Translate
import Interaction from '../../../../src/ol/interaction/Interaction.js';
import VectorLayer from '../../../../src/ol/layer/Vector.js';
import _ol_pointer_PointerEvent_ from '../../../../src/ol/pointer/PointerEvent.js';
import _ol_source_Vector_ from '../../../../src/ol/source/Vector.js';
import VectorSource from '../../../../src/ol/source/Vector.js';
describe('ol.interaction.Translate', function() {
@@ -26,7 +26,7 @@ describe('ol.interaction.Translate', function() {
style.width = width + 'px';
style.height = height + 'px';
document.body.appendChild(target);
source = new _ol_source_Vector_();
source = new VectorSource();
features = [new Feature({
geometry: new Point([10, -20])
}), new Feature({