1 I add feature layer into the map.
2 I took geometry on event into a polygongeometry1 variable.
3 Then I draw a polyline with a draw widget and took its geometry into a linee variable. and pass it to a geometryEngine.cut method . but i receive this error
cannot read Property _geVersion of undefined although both polygon and line geometries are there.
Actually I want to cut a Polygon shape file temporarily and undo it.#cut polygon.
I have no Idea what is wrong with it. Kindly help..
Solved! Go to Solution.
I passed geometry and it worked fine. but I want to cut the feature layer but i am getting a geometry in return to cut operation. how can i update the feature layer with this result. also i want to undo the cut operation.
this is what i got.
I was seeing this same error when trying a geometry contains function, with a Polyline, and what I thought was a Point (it wasn't). Once I created a new Point from the generic Object, it worked. It would be nice if the error message could lead a consumer of the API down a path to solving the issue. Instead, it's so vague, that we have to ask in a developer forum.