Shared module for object event types

This commit is contained in:
Tim Schaub
2016-12-27 13:55:23 -07:00
parent 3fd88b3a22
commit 7ee52f413d
6 changed files with 26 additions and 22 deletions

View File

@@ -6,6 +6,7 @@ goog.require('ol.Map');
goog.require('ol.MapEventType');
goog.require('ol.MapProperty');
goog.require('ol.Object');
goog.require('ol.ObjectEventType');
goog.require('ol.Overlay');
goog.require('ol.ViewProperty');
goog.require('ol.control.Control');
@@ -166,7 +167,7 @@ ol.control.OverviewMap.prototype.setMap = function(map) {
if (map) {
this.listenerKeys.push(ol.events.listen(
map, ol.Object.EventType.PROPERTYCHANGE,
map, ol.ObjectEventType.PROPERTYCHANGE,
this.handleMapPropertyChange_, this));
// TODO: to really support map switching, this would need to be reworked