Rename _ol_Overlay_ to Overlay
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 MapEvent from '../../../src/ol/MapEvent.js';
|
||||
import _ol_Overlay_ from '../../../src/ol/Overlay.js';
|
||||
import Overlay from '../../../src/ol/Overlay.js';
|
||||
import _ol_View_ from '../../../src/ol/View.js';
|
||||
import Point from '../../../src/ol/geom/Point.js';
|
||||
import _ol_has_ from '../../../src/ol/has.js';
|
||||
@@ -610,7 +610,7 @@ describe('ol.Map', function() {
|
||||
});
|
||||
|
||||
it('returns an overlay by id', function() {
|
||||
overlay = new _ol_Overlay_({
|
||||
overlay = new Overlay({
|
||||
id: 'foo',
|
||||
element: overlay_target,
|
||||
position: [0, 0]
|
||||
@@ -620,7 +620,7 @@ describe('ol.Map', function() {
|
||||
});
|
||||
|
||||
it('returns null when no overlay is found', function() {
|
||||
overlay = new _ol_Overlay_({
|
||||
overlay = new Overlay({
|
||||
id: 'foo',
|
||||
element: overlay_target,
|
||||
position: [0, 0]
|
||||
@@ -630,7 +630,7 @@ describe('ol.Map', function() {
|
||||
});
|
||||
|
||||
it('returns null after removing overlay', function() {
|
||||
overlay = new _ol_Overlay_({
|
||||
overlay = new Overlay({
|
||||
id: 'foo',
|
||||
element: overlay_target,
|
||||
position: [0, 0]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import _ol_Map_ from '../../../src/ol/Map.js';
|
||||
import _ol_Overlay_ from '../../../src/ol/Overlay.js';
|
||||
import Overlay from '../../../src/ol/Overlay.js';
|
||||
import _ol_View_ from '../../../src/ol/View.js';
|
||||
|
||||
|
||||
@@ -38,13 +38,13 @@ describe('ol.Overlay', function() {
|
||||
describe('constructor', function() {
|
||||
|
||||
it('can be constructed with minimal arguments', function() {
|
||||
var instance = new _ol_Overlay_({});
|
||||
expect(instance).to.be.an(_ol_Overlay_);
|
||||
var instance = new Overlay({});
|
||||
expect(instance).to.be.an(Overlay);
|
||||
});
|
||||
|
||||
it('can be constructed with className', function() {
|
||||
var instance = new _ol_Overlay_({className: 'my-class'});
|
||||
expect(instance).to.be.an(_ol_Overlay_);
|
||||
var instance = new Overlay({className: 'my-class'});
|
||||
expect(instance).to.be.an(Overlay);
|
||||
expect(instance.element.className).to.be('my-class');
|
||||
});
|
||||
|
||||
@@ -61,14 +61,14 @@ describe('ol.Overlay', function() {
|
||||
});
|
||||
|
||||
it('returns the overlay identifier', function() {
|
||||
overlay = new _ol_Overlay_({
|
||||
overlay = new Overlay({
|
||||
element: target,
|
||||
position: [0, 0]
|
||||
});
|
||||
map.addOverlay(overlay);
|
||||
expect(overlay.getId()).to.be(undefined);
|
||||
map.removeOverlay(overlay);
|
||||
overlay = new _ol_Overlay_({
|
||||
overlay = new Overlay({
|
||||
id: 'foo',
|
||||
element: target,
|
||||
position: [0, 0]
|
||||
@@ -90,7 +90,7 @@ describe('ol.Overlay', function() {
|
||||
});
|
||||
|
||||
it('changes the CSS display value', function() {
|
||||
overlay = new _ol_Overlay_({
|
||||
overlay = new Overlay({
|
||||
element: target,
|
||||
position: [0, 0]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user