Feature opt_geometryOrProperties cannot be null
This commit is contained in:
@@ -99,10 +99,9 @@ class Feature extends BaseObject {
|
||||
this.handleGeometryChanged_, this);
|
||||
|
||||
if (opt_geometryOrProperties !== undefined) {
|
||||
if (opt_geometryOrProperties instanceof Geometry ||
|
||||
!opt_geometryOrProperties) {
|
||||
if (opt_geometryOrProperties instanceof Geometry) {
|
||||
|
||||
const geometry = /** @type {?Geometry} */ (opt_geometryOrProperties);
|
||||
const geometry = /** @type {Geometry} */ (opt_geometryOrProperties);
|
||||
this.setGeometry(geometry);
|
||||
} else {
|
||||
/** @type {Object<string, *>} */
|
||||
|
||||
Reference in New Issue
Block a user