Hello,
I'm having a problem editing multipoint features using JSAPI 3.27. This is the error I get:
[esri.toolbars.Edit::activate] Unable to activate the tool. Check if the tool is valid for the given geometry type.
Thanks in advance for your help.
Mario,
What options are you specifying for the activate method on your multipoint geometry?
Robert,
I have a few questions for you:
Anyway, I really appreciate your help.
Thanks!
You are likely better off forgetting the Editor widget (It just combines the out-of-the-box TemplatePicker, AttachmentEditor, AttributeInspector and GeometryService to provide feature and attribute editing.) but because you need multipoint ability you are better off using the Edit toolbar and AttributeInspector.
Here is a sample you have likely seen for adding multipoint.
https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=toolbar_draw
Editing multipoint is not anything I have a sample for or experience with.
Robert,
Thanks again for your help and advice. I was afraid that was going to be the case. I'll try to find a way to edit multipoints. I'll report back once I have a working solution or if I have any other questions.
Thanks!
Robert,
Thanks so much for your prompt reply.
This is the code that I'm working with. I just use the startup method of the editor.
Hi Mario,
Have you checked the method "setPoint" in multipoint class. You can update a point from multipoint created using this method.
Here is the web help link:
Multipoint | API Reference | ArcGIS API for JavaScript 3.27
Multipoint
Thanks,
Biraja