Remove property enum from view constructor

This commit is contained in:
Tim Schaub
2016-12-27 09:34:48 -07:00
parent 7a95947dbb
commit 62a0dd5b5b
3 changed files with 29 additions and 28 deletions

View File

@@ -7,7 +7,7 @@ goog.require('ol.MapEvent');
goog.require('ol.MapProperty');
goog.require('ol.Object');
goog.require('ol.Overlay');
goog.require('ol.View');
goog.require('ol.ViewProperty');
goog.require('ol.control.Control');
goog.require('ol.coordinate');
goog.require('ol.css');
@@ -210,7 +210,7 @@ ol.control.OverviewMap.prototype.handleMapPropertyChange_ = function(event) {
*/
ol.control.OverviewMap.prototype.bindView_ = function(view) {
ol.events.listen(view,
ol.Object.getChangeEventType(ol.View.Property.ROTATION),
ol.Object.getChangeEventType(ol.ViewProperty.ROTATION),
this.handleRotationChanged_, this);
};
@@ -222,7 +222,7 @@ ol.control.OverviewMap.prototype.bindView_ = function(view) {
*/
ol.control.OverviewMap.prototype.unbindView_ = function(view) {
ol.events.unlisten(view,
ol.Object.getChangeEventType(ol.View.Property.ROTATION),
ol.Object.getChangeEventType(ol.ViewProperty.ROTATION),
this.handleRotationChanged_, this);
};