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