Initialize all properties in constructor in controls
This commit is contained in:
@@ -77,7 +77,7 @@ ol.control.ScaleLine = function(opt_options) {
|
||||
* @private
|
||||
* @type {number|undefined}
|
||||
*/
|
||||
this.renderedWidth_;
|
||||
this.renderedWidth_ = undefined;
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
@@ -38,10 +38,10 @@ ol.control.ZoomSlider = function(options) {
|
||||
/**
|
||||
* Will hold the current resolution of the view.
|
||||
*
|
||||
* @type {number}
|
||||
* @type {number|undefined}
|
||||
* @private
|
||||
*/
|
||||
this.currentResolution_;
|
||||
this.currentResolution_ = undefined;
|
||||
|
||||
/**
|
||||
* The direction of the slider. Will be determined from actual display of the
|
||||
|
||||
Reference in New Issue
Block a user