You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (this.geometryName_) f.setGeometryName(this.geometryName_)
//f.setGeometry (g);
if (g.getType()==='Polygon') f.getGeometry().setCoordinates(g.getCoordinates());
In my case, I have a exception because setCoordinates is called on undefined.
Indeed f.getGeometry() return undefined after the geometryName is updated.
I think the comment should be removed to update the geometry after geometryName is changed.
I'm using:
"ol": "6.9.0",
"ol-ext": "3.2.16",
Thanks again for this great lib I'm using massively !
Regards,
Nicolas
The text was updated successfully, but these errors were encountered:
Hi Jean-Marc,
I think there is a problem when we have custom geometry name.
ol-ext/src/interaction/DrawRegular.js
Line 247 in 66aee1c
In my case, I have a exception because
setCoordinates
is called onundefined
.Indeed
f.getGeometry()
return undefined after the geometryName is updated.I think the comment should be removed to update the geometry after geometryName is changed.
I'm using:
"ol": "6.9.0",
"ol-ext": "3.2.16",
Thanks again for this great lib I'm using massively !
Regards,
Nicolas
The text was updated successfully, but these errors were encountered: