Removes unnecessary type cast

This commit is contained in:
Stéphane Brunner
2019-02-05 13:18:23 +01:00
parent 970c1bcb66
commit 889b6a9f43
7 changed files with 32 additions and 31 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ class Cluster extends VectorSource {
* @protected
*/
this.geometryFunction = options.geometryFunction || function(feature) {
const geometry = /** @type {Point} */ (feature.getGeometry());
const geometry = feature.getGeometry();
assert(geometry.getType() == GeometryType.POINT,
10); // The default `geometryFunction` can only handle `Point` geometries
return geometry;