<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Delete vertex not available when editing in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645215#M19143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Luke,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I think the featurelayer that has the context menu listener, but I would see if you have a map mouse listener attached that is preventing the graphics from receiving the event. Or do you have a widget that is firing a setMapAction as that by default sets the mouse events to not listen, until the drawtool is deactivated.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would adding listeners to the map (or feature layer, graphic etc) stop the feature layer from receiving the event?&amp;nbsp; I assumed that the event would be caught by all listeners unless event.stopPropagation() was called, though I may be completely wrong on this&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 16:15:33 GMT</pubDate>
    <dc:creator>LukeEvans</dc:creator>
    <dc:date>2011-11-02T16:15:33Z</dc:date>
    <item>
      <title>Delete vertex not available when editing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645209#M19137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a heavily modified version of the Flex Viewer.&amp;nbsp; Whenever using an editor within our implementation I am unable to right click to delete a vertex.&amp;nbsp; I have tested this in the out of the box version and it works fine.&amp;nbsp; I cannot figure why this option would not be available to me.&amp;nbsp; I have 'allowDeleteVertices' set to true.&amp;nbsp; We use the EditTool rather than the Editor component.&amp;nbsp; Does anyone have any ideas as to why this option wouldn't be available in the context menu?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 07:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645209#M19137</guid>
      <dc:creator>LukeEvans</dc:creator>
      <dc:date>2011-10-03T07:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Delete vertex not available when editing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645210#M19138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone help with this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 08:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645210#M19138</guid>
      <dc:creator>LukeEvans</dc:creator>
      <dc:date>2011-11-02T08:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Delete vertex not available when editing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645211#M19139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you checked the documentation on this site?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Edit_Widget/01m30000000v000000/"&gt;http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Edit_Widget/01m30000000v000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 13:08:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645211#M19139</guid>
      <dc:creator>JanieGoddard</dc:creator>
      <dc:date>2011-11-02T13:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete vertex not available when editing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645212#M19140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Luke,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Sounds like you have a mouseEvent listener attached to the map that is preventing the right click context menu from receiving the event (just a guess).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 13:15:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645212#M19140</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-11-02T13:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delete vertex not available when editing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645213#M19141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Luke,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Sounds like you have a mouseEvent listener attached to the map that is preventing the right click context menu from receiving the event (just a guess).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; That sounds the most likely reason.&amp;nbsp; It's a case of trying to hunt down the offending listener&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it definitely the map listening for the event that will then add the "Delete Vertex" context menu item?&amp;nbsp; Not the feature/graphics layer or the Edit tool?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 14:35:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645213#M19141</guid>
      <dc:creator>LukeEvans</dc:creator>
      <dc:date>2011-11-02T14:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Delete vertex not available when editing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645214#M19142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Luke,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I think the featurelayer that has the context menu listener, but I would see if you have a map mouse listener attached that is preventing the graphics from receiving the event. Or do you have a widget that is firing a setMapAction as that by default sets the mouse events to not listen, until the drawtool is deactivated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 14:46:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645214#M19142</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-11-02T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Delete vertex not available when editing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645215#M19143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Luke,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I think the featurelayer that has the context menu listener, but I would see if you have a map mouse listener attached that is preventing the graphics from receiving the event. Or do you have a widget that is firing a setMapAction as that by default sets the mouse events to not listen, until the drawtool is deactivated.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would adding listeners to the map (or feature layer, graphic etc) stop the feature layer from receiving the event?&amp;nbsp; I assumed that the event would be caught by all listeners unless event.stopPropagation() was called, though I may be completely wrong on this&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 16:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645215#M19143</guid>
      <dc:creator>LukeEvans</dc:creator>
      <dc:date>2011-11-02T16:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Delete vertex not available when editing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645216#M19144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Luke,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; It depends. I think that the DrawTool disables or removes all listeners when it is activated by default, unless you choose to add it's addition argument of false.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 16:22:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645216#M19144</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-11-02T16:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delete vertex not available when editing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645217#M19145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Luke,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; It depends. I think that the DrawTool disables or removes all listeners when it is activated by default, unless you choose to add it's addition argument of false.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried listening to the EditEvent.CONTEXT_MENU_SELECT event on the EditTool but it doesn't appear to be getting fired.&amp;nbsp; One step closer I guess, as this is clearly the issue.&amp;nbsp; I don't know why this wouldn't be getting fired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: On that note, I've just noticed that the "About ArcGIS API for Flex..." and "About ArcGIS Viewer for Flex..." aren't available in the context menu when the edit tool is activated on a graphic and the mouse is over a vertex.&amp;nbsp; If the mouse is in the centre of the graphic (not over a vertex) then they are available.&amp;nbsp; No idea why the event is being fired when mouse is over a vertex&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: Yet another update.&amp;nbsp; If I open my viewer with no widgets open then keep right clicking around the map then sometimes the "About..." items will show in the context menu, other times they won't.&amp;nbsp; It seems that the context menu is only shown with the "About..." items when the focus is on the map.&amp;nbsp; This could be related to my edit tool issue, as when right clicking over a vertex takes the focus off of the map.&amp;nbsp; I don't know really&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 08:42:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645217#M19145</guid>
      <dc:creator>LukeEvans</dc:creator>
      <dc:date>2011-11-03T08:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Delete vertex not available when editing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645218#M19146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Luke,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; For debugging try making this change to the MapManager.mxml. Find the setMapActionHandler function and then the &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;drawTool.activate(tool);&lt;/PRE&gt;&lt;SPAN&gt; and change it to &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;drawTool.activate(tool, true);&lt;/PRE&gt;&lt;SPAN&gt; and see if that makes a difference. Also search your custom code for things that add event listeners to the map or graphics.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 11:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645218#M19146</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-11-03T11:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Delete vertex not available when editing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645219#M19147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was this issue ever resolved?&amp;nbsp; If so, how?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the suggestions above but nothing seems to work with EditTool and EditTool.activate doesn't have the enableGraphicsLayerMouseEvents parameter.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I activate EditTool, I lose the map.contextMenu and instead get the application ContextMenu over the map and therefore no Delete Vertex option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I deactivate EditTool, I get the map.contextMenu over the map again.&amp;nbsp; I believe that is due to setting enableGraphicsLayerMouseEvents to true when activating Pan.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I get the Delete Vertex using EditTool?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 14:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645219#M19147</guid>
      <dc:creator>MarkNewcomb</dc:creator>
      <dc:date>2012-09-26T14:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delete vertex not available when editing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645220#M19148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I integrated my code with ArcGIS Viewer 3.0 for Flex and the problem is solved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 19:23:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/delete-vertex-not-available-when-editing/m-p/645220#M19148</guid>
      <dc:creator>MarkNewcomb</dc:creator>
      <dc:date>2012-10-02T19:23:39Z</dc:date>
    </item>
  </channel>
</rss>

