@@ -34,7 +34,7 @@ ol.interaction.DoubleClickZoom = function(opt_options) {
|
||||
* @private
|
||||
* @type {number}
|
||||
*/
|
||||
this.duration_ = options.duration ? options.duration : 250;
|
||||
this.duration_ = options.duration !== undefined ? options.duration : 250;
|
||||
|
||||
};
|
||||
goog.inherits(ol.interaction.DoubleClickZoom, ol.interaction.Interaction);
|
||||
|
||||
@@ -64,7 +64,7 @@ ol.interaction.DragRotateAndZoom = function(opt_options) {
|
||||
* @private
|
||||
* @type {number}
|
||||
*/
|
||||
this.duration_ = options.duration ? options.duration : 400;
|
||||
this.duration_ = options.duration !== undefined ? options.duration : 400;
|
||||
|
||||
};
|
||||
goog.inherits(ol.interaction.DragRotateAndZoom, ol.interaction.Pointer);
|
||||
|
||||
@@ -49,7 +49,7 @@ ol.interaction.DragRotate = function(opt_options) {
|
||||
* @private
|
||||
* @type {number}
|
||||
*/
|
||||
this.duration_ = options.duration ? options.duration : 250;
|
||||
this.duration_ = options.duration !== undefined ? options.duration : 250;
|
||||
};
|
||||
goog.inherits(ol.interaction.DragRotate, ol.interaction.Pointer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user