Rename ol.MapEventType to ol.MapEvent.Type

This commit is contained in:
Frederic Junod
2016-09-07 10:05:38 +02:00
parent a40717b7c9
commit 107dd6a85f
6 changed files with 31 additions and 32 deletions

View File

@@ -3,7 +3,7 @@ goog.provide('ol.control.OverviewMap');
goog.require('ol');
goog.require('ol.Collection');
goog.require('ol.Map');
goog.require('ol.MapEventType');
goog.require('ol.MapEvent');
goog.require('ol.Object');
goog.require('ol.ObjectEventType');
goog.require('ol.Overlay');
@@ -445,7 +445,7 @@ ol.control.OverviewMap.prototype.handleToggle_ = function() {
if (!this.collapsed_ && !ovmap.isRendered()) {
ovmap.updateSize();
this.resetExtent_();
ol.events.listenOnce(ovmap, ol.MapEventType.POSTRENDER,
ol.events.listenOnce(ovmap, ol.MapEvent.Type.POSTRENDER,
function(event) {
this.updateBox_();
},