Rename _ol_MapEventType_ to MapEventType
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@
|
|||||||
* @module ol/Overlay
|
* @module ol/Overlay
|
||||||
*/
|
*/
|
||||||
import {inherits} from './index.js';
|
import {inherits} from './index.js';
|
||||||
import _ol_MapEventType_ from './MapEventType.js';
|
import MapEventType from './MapEventType.js';
|
||||||
import _ol_Object_ from './Object.js';
|
import _ol_Object_ from './Object.js';
|
||||||
import _ol_OverlayPositioning_ from './OverlayPositioning.js';
|
import _ol_OverlayPositioning_ from './OverlayPositioning.js';
|
||||||
import _ol_css_ from './css.js';
|
import _ol_css_ from './css.js';
|
||||||
@@ -251,7 +251,7 @@ _ol_Overlay_.prototype.handleMapChanged = function() {
|
|||||||
var map = this.getMap();
|
var map = this.getMap();
|
||||||
if (map) {
|
if (map) {
|
||||||
this.mapPostrenderListenerKey = _ol_events_.listen(map,
|
this.mapPostrenderListenerKey = _ol_events_.listen(map,
|
||||||
_ol_MapEventType_.POSTRENDER, this.render, this);
|
MapEventType.POSTRENDER, this.render, this);
|
||||||
this.updatePixelPosition();
|
this.updatePixelPosition();
|
||||||
var container = this.stopEvent ?
|
var container = this.stopEvent ?
|
||||||
map.getOverlayContainerStopEvent() : map.getOverlayContainer();
|
map.getOverlayContainerStopEvent() : map.getOverlayContainer();
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import MapBrowserEvent from './MapBrowserEvent.js';
|
|||||||
import MapBrowserEventHandler from './MapBrowserEventHandler.js';
|
import MapBrowserEventHandler from './MapBrowserEventHandler.js';
|
||||||
import MapBrowserEventType from './MapBrowserEventType.js';
|
import MapBrowserEventType from './MapBrowserEventType.js';
|
||||||
import MapEvent from './MapEvent.js';
|
import MapEvent from './MapEvent.js';
|
||||||
import _ol_MapEventType_ from './MapEventType.js';
|
import MapEventType from './MapEventType.js';
|
||||||
import _ol_MapProperty_ from './MapProperty.js';
|
import _ol_MapProperty_ from './MapProperty.js';
|
||||||
import _ol_Object_ from './Object.js';
|
import _ol_Object_ from './Object.js';
|
||||||
import _ol_ObjectEventType_ from './ObjectEventType.js';
|
import _ol_ObjectEventType_ from './ObjectEventType.js';
|
||||||
@@ -1254,7 +1254,7 @@ _ol_PluggableMap_.prototype.renderFrame_ = function(time) {
|
|||||||
!equals(frameState.extent, this.previousExtent_));
|
!equals(frameState.extent, this.previousExtent_));
|
||||||
if (moveStart) {
|
if (moveStart) {
|
||||||
this.dispatchEvent(
|
this.dispatchEvent(
|
||||||
new MapEvent(_ol_MapEventType_.MOVESTART, this, previousFrameState));
|
new MapEvent(MapEventType.MOVESTART, this, previousFrameState));
|
||||||
this.previousExtent_ = createOrUpdateEmpty(this.previousExtent_);
|
this.previousExtent_ = createOrUpdateEmpty(this.previousExtent_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1266,13 +1266,13 @@ _ol_PluggableMap_.prototype.renderFrame_ = function(time) {
|
|||||||
|
|
||||||
if (idle) {
|
if (idle) {
|
||||||
this.dispatchEvent(
|
this.dispatchEvent(
|
||||||
new MapEvent(_ol_MapEventType_.MOVEEND, this, frameState));
|
new MapEvent(MapEventType.MOVEEND, this, frameState));
|
||||||
clone(frameState.extent, this.previousExtent_);
|
clone(frameState.extent, this.previousExtent_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.dispatchEvent(
|
this.dispatchEvent(
|
||||||
new MapEvent(_ol_MapEventType_.POSTRENDER, this, frameState));
|
new MapEvent(MapEventType.POSTRENDER, this, frameState));
|
||||||
|
|
||||||
setTimeout(this.handlePostRender.bind(this), 0);
|
setTimeout(this.handlePostRender.bind(this), 0);
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @module ol/control/Control
|
* @module ol/control/Control
|
||||||
*/
|
*/
|
||||||
import {inherits, nullFunction} from '../index.js';
|
import {inherits, nullFunction} from '../index.js';
|
||||||
import _ol_MapEventType_ from '../MapEventType.js';
|
import MapEventType from '../MapEventType.js';
|
||||||
import _ol_Object_ from '../Object.js';
|
import _ol_Object_ from '../Object.js';
|
||||||
import {removeNode} from '../dom.js';
|
import {removeNode} from '../dom.js';
|
||||||
import _ol_events_ from '../events.js';
|
import _ol_events_ from '../events.js';
|
||||||
@@ -120,7 +120,7 @@ Control.prototype.setMap = function(map) {
|
|||||||
target.appendChild(this.element);
|
target.appendChild(this.element);
|
||||||
if (this.render !== nullFunction) {
|
if (this.render !== nullFunction) {
|
||||||
this.listenerKeys.push(_ol_events_.listen(map,
|
this.listenerKeys.push(_ol_events_.listen(map,
|
||||||
_ol_MapEventType_.POSTRENDER, this.render, this));
|
MapEventType.POSTRENDER, this.render, this));
|
||||||
}
|
}
|
||||||
map.render();
|
map.render();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import {inherits} from '../index.js';
|
import {inherits} from '../index.js';
|
||||||
import _ol_Collection_ from '../Collection.js';
|
import _ol_Collection_ from '../Collection.js';
|
||||||
import _ol_PluggableMap_ from '../PluggableMap.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_MapProperty_ from '../MapProperty.js';
|
||||||
import _ol_Object_ from '../Object.js';
|
import _ol_Object_ from '../Object.js';
|
||||||
import _ol_ObjectEventType_ from '../ObjectEventType.js';
|
import _ol_ObjectEventType_ from '../ObjectEventType.js';
|
||||||
@@ -504,7 +504,7 @@ OverviewMap.prototype.handleToggle_ = function() {
|
|||||||
if (!this.collapsed_ && !ovmap.isRendered()) {
|
if (!this.collapsed_ && !ovmap.isRendered()) {
|
||||||
ovmap.updateSize();
|
ovmap.updateSize();
|
||||||
this.resetExtent_();
|
this.resetExtent_();
|
||||||
_ol_events_.listenOnce(ovmap, _ol_MapEventType_.POSTRENDER,
|
_ol_events_.listenOnce(ovmap, MapEventType.POSTRENDER,
|
||||||
function(event) {
|
function(event) {
|
||||||
this.updateBox_();
|
this.updateBox_();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user