Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working with the ArcGIS JavaScript API and want to move and edit the vertices of a polyline analog to the following sample:

This works fine as long as the polyline does not contain M Values. If it does contain M Values I get the following error in firebug. Errorcode:-2147221399, description: „Geometry does not have M Value(s), hence cannot update the feature."

What am I doing wrong?

Here’s my code:

function initEditing(layers) {
    var myMap = this;
    var firePerimeterFL = myMap.getLayer("firePerimeterFL");

    var editToolbar = new esri.toolbars.Edit(myMap);
    dojo.connect(editToolbar, "onDeactivate", function(tool,graphic,info) {
        firePerimeterFL.applyEdits(null, [graphic], null);

    var editingEnabled = false;
    dojo.connect(firePerimeterFL, "onDblClick", function(evt) {
      if (editingEnabled === false) {
        editingEnabled = true;
        editToolbar.activate(esri.toolbars.Edit.EDIT_VERTICES , evt.graphic);
      } else {
        editingEnabled = false;
share|improve this question

Editing feature geometries with M values is not supported via REST (or SOAP for that matter) at 10.0. It is a planned feature for 10.1 (along with Z values). Here's the documentation for this: Authoring feature services


If you have data that has m-values, these features can be deleted, new features can be inserted and the attributes of existing features can be edited, but the geometry cannot be edited. All new features will have their m-values set to NaN when inserted through the REST and SOAP endpoints. If features with m-values are edited through the feature service in ArcMap with the local editing commands, all editing operations are supported.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.