diff --git a/src/ol/format/gml/gml3format.js b/src/ol/format/gml/gml3format.js index 94f04feb2d..65a5e9bc0d 100644 --- a/src/ol/format/gml/gml3format.js +++ b/src/ol/format/gml/gml3format.js @@ -66,7 +66,7 @@ ol.format.GML3 = function(opt_options) { * @type {boolean} */ this.multiSurface_ = options.multiSurface !== undefined ? - /** @type {boolean} */ (options.multiSurface) : true; + options.multiSurface : true; /** * @inheritDoc diff --git a/src/ol/interaction/interaction.js b/src/ol/interaction/interaction.js index 3f7d7c8be0..85d7103926 100644 --- a/src/ol/interaction/interaction.js +++ b/src/ol/interaction/interaction.js @@ -225,7 +225,7 @@ ol.interaction.Interaction.zoomWithoutConstraints = resolution !== currentResolution && opt_duration && opt_duration > 0) { map.beforeRender(ol.animation.zoom({ - resolution: /** @type {number} */ (currentResolution), + resolution: currentResolution, duration: opt_duration, easing: ol.easing.easeOut })); diff --git a/src/ol/interaction/modifyinteraction.js b/src/ol/interaction/modifyinteraction.js index de04fdc1d1..e160c3e0f8 100644 --- a/src/ol/interaction/modifyinteraction.js +++ b/src/ol/interaction/modifyinteraction.js @@ -824,7 +824,7 @@ ol.interaction.Modify.prototype.insertVertex_ = function(segmentData, vertex) { goog.asserts.assert(segment !== undefined, 'segment should be defined'); rTree.remove(segmentData); goog.asserts.assert(index !== undefined, 'index should be defined'); - this.updateSegmentIndices_(geometry, /** @type {number} */ (index), depth, 1); + this.updateSegmentIndices_(geometry, index, depth, 1); var newSegmentData = /** @type {ol.interaction.SegmentDataType} */ ({ segment: [segment[0], vertex], feature: feature, diff --git a/src/ol/layer/heatmaplayer.js b/src/ol/layer/heatmaplayer.js index 05354da0a8..75152234ce 100644 --- a/src/ol/layer/heatmaplayer.js +++ b/src/ol/layer/heatmaplayer.js @@ -80,11 +80,9 @@ ol.layer.Heatmap = function(opt_options) { this.setGradient(options.gradient ? options.gradient : ol.layer.Heatmap.DEFAULT_GRADIENT); - this.setBlur(options.blur !== undefined ? - /** @type {number} */ (options.blur) : 15); + this.setBlur(options.blur !== undefined ? options.blur : 15); - this.setRadius(options.radius !== undefined ? - /** @type {number} */ (options.radius) : 8); + this.setRadius(options.radius !== undefined ? options.radius : 8); goog.events.listen(this, [ ol.Object.getChangeEventType(ol.layer.HeatmapLayerProperty.BLUR),