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