Rename _ol_MapEventType_ to MapEventType
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @module ol/control/Control
|
||||
*/
|
||||
import {inherits, nullFunction} from '../index.js';
|
||||
import _ol_MapEventType_ from '../MapEventType.js';
|
||||
import MapEventType from '../MapEventType.js';
|
||||
import _ol_Object_ from '../Object.js';
|
||||
import {removeNode} from '../dom.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
@@ -120,7 +120,7 @@ Control.prototype.setMap = function(map) {
|
||||
target.appendChild(this.element);
|
||||
if (this.render !== nullFunction) {
|
||||
this.listenerKeys.push(_ol_events_.listen(map,
|
||||
_ol_MapEventType_.POSTRENDER, this.render, this));
|
||||
MapEventType.POSTRENDER, this.render, this));
|
||||
}
|
||||
map.render();
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_Collection_ from '../Collection.js';
|
||||
import _ol_PluggableMap_ from '../PluggableMap.js';
|
||||
import _ol_MapEventType_ from '../MapEventType.js';
|
||||
import MapEventType from '../MapEventType.js';
|
||||
import _ol_MapProperty_ from '../MapProperty.js';
|
||||
import _ol_Object_ from '../Object.js';
|
||||
import _ol_ObjectEventType_ from '../ObjectEventType.js';
|
||||
@@ -504,7 +504,7 @@ OverviewMap.prototype.handleToggle_ = function() {
|
||||
if (!this.collapsed_ && !ovmap.isRendered()) {
|
||||
ovmap.updateSize();
|
||||
this.resetExtent_();
|
||||
_ol_events_.listenOnce(ovmap, _ol_MapEventType_.POSTRENDER,
|
||||
_ol_events_.listenOnce(ovmap, MapEventType.POSTRENDER,
|
||||
function(event) {
|
||||
this.updateBox_();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user