Shared module for map event type enum

This commit is contained in:
Tim Schaub
2016-12-27 13:52:02 -07:00
parent c6c105b62f
commit 3fd88b3a22
6 changed files with 33 additions and 32 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
goog.provide('ol.Overlay');
goog.require('ol');
goog.require('ol.MapEvent');
goog.require('ol.MapEventType');
goog.require('ol.Object');
goog.require('ol.dom');
goog.require('ol.events');
@@ -236,7 +236,7 @@ ol.Overlay.prototype.handleMapChanged = function() {
var map = this.getMap();
if (map) {
this.mapPostrenderListenerKey_ = ol.events.listen(map,
ol.MapEvent.Type.POSTRENDER, this.render, this);
ol.MapEventType.POSTRENDER, this.render, this);
this.updatePixelPosition();
var container = this.stopEvent_ ?
map.getOverlayContainerStopEvent() : map.getOverlayContainer();