Merge pull request #4269 from adube/fix-zoomcontrol-duration

Fix Zoom control duration option - allow `0` as value
This commit is contained in:
Andreas Hocevar
2015-10-14 22:43:05 +02:00

View File

@@ -71,7 +71,7 @@ ol.control.Zoom = function(opt_options) {
* @type {number}
* @private
*/
this.duration_ = options.duration ? options.duration : 250;
this.duration_ = options.duration !== undefined ? options.duration : 250;
};
goog.inherits(ol.control.Zoom, ol.control.Control);