Fix cast for Geometry type
This commit is contained in:
@@ -101,8 +101,8 @@ class Feature extends BaseObject {
|
||||
if (opt_geometryOrProperties !== undefined) {
|
||||
if (opt_geometryOrProperties instanceof Geometry ||
|
||||
!opt_geometryOrProperties) {
|
||||
/** @type {?Geometry} */
|
||||
const geometry = opt_geometryOrProperties;
|
||||
|
||||
const geometry = /** @type {?Geometry} */ (opt_geometryOrProperties);
|
||||
this.setGeometry(geometry);
|
||||
} else {
|
||||
/** @type {Object<string, *>} */
|
||||
|
||||
Reference in New Issue
Block a user