Remove unnecessary cast
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}));
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user