<?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: Command AddVertex in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758569#M9486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Antti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I look forward to get this fixed in the next release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Dec 2014 19:18:58 GMT</pubDate>
    <dc:creator>MartinBrzezinka</dc:creator>
    <dc:date>2014-12-08T19:18:58Z</dc:date>
    <item>
      <title>Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758557#M9474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are trying to use the&lt;BR /&gt;command AddVertex to edit existing polygons and like to add this using XAML&lt;BR /&gt;code: e.g. &amp;lt;Button Content="Add Vertex" Command="{Binding&lt;BR /&gt;AddVertex}" CommandParameter="{Binding GPSPosition}" … /&amp;gt; where&lt;BR /&gt;GPSPosition is a function in the code behind. However using the command&lt;BR /&gt;parameter with the gps function or not we seem not to be able to get this&lt;BR /&gt;button to activate when editing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone looked at this&lt;BR /&gt;Before and have a solution on this? Or know if we are addressing this the wrong way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 08:41:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758557#M9474</guid>
      <dc:creator>JonasLeksell</dc:creator>
      <dc:date>2014-11-12T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758558#M9475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What DataContext you are using here? Are you using Editor.AddVertex command? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have map in the same view, try to use elementName binding to the myMapView.Editor.AddVertex and then bind normally to your command parameter that is coming from DataContext.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 09:52:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758558#M9475</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2014-11-12T09:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758559#M9476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;Hi Antti,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;Thx, for checking in to this question. Yes I am using the ICommand AddVertex from MapView.Editor and&lt;BR /&gt;are using the following DataContext:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;DataContext="{Binding ElementName=mapView, Path=Editor}"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;I am also using command as Undo, Redo and Cancel, and those are activated when I editing my map.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;By some reason the button connected to the AddVertex command never gets in a valid state because it&lt;BR /&gt;will not become clickable. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;Do you have a sample showing how this should work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;Jonas &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 10:23:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758559#M9476</guid>
      <dc:creator>JonasLeksell</dc:creator>
      <dc:date>2014-11-12T10:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758560#M9477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it something like this, not very nice sample but you get the point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View : Notice binding&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14157928400328901" jivemacro_uid="_14157928400328901"&gt;
&lt;P&gt; &amp;lt;Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:MapView x:Name="MyMapView"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LayerLoaded="MyMapView_LayerLoaded"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;layers:ArcGISTiledMapServiceLayer ID="Basemap"&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceUri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:MapView&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button Command="{Binding ElementName=MyMapView, Path=Editor.AddVertex}" CommandParameter="{Binding GPSLocation}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Background="Green"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Width="100" Height="100" HorizontalAlignment="Right" VerticalAlignment="Top"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;add vertex&amp;lt;/Button&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/Grid&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ViewModel&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14157929049239106 jive_text_macro" jivemacro_uid="_14157929049239106" modifiedtitle="true"&gt;
&lt;P&gt;public class MainPageViewModel : INotifyPropertyChanged&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DispatcherTimer timer;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public MainPageViewModel()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer = new DispatcherTimer()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval = new TimeSpan(0, 0, 3)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer.Tick += timer_Tick;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer.Start();&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPSLocation = new MapPoint(0, 0, SpatialReferences.WebMercator);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void timer_Tick(object sender, object e)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var random = new Random(DateTime.Now.Millisecond);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPSLocation = new MapPoint(random.Next(-10000000, 10000000), random.Next(-1000000,1000000), GPSLocation.SpatialReference);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private MapPoint _gpsLocation;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public MapPoint GPSLocation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return _gpsLocation; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { _gpsLocation = value; RaisePropertyChanged("GPSLocation"); }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public event PropertyChangedEventHandler PropertyChanged;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void RaisePropertyChanged(string name)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (PropertyChanged != null)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PropertyChanged(this, new PropertyChangedEventArgs(name));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And set DataContext to new MainPageViewModel and activate editor. For example like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14157931180062627" jivemacro_uid="_14157931180062627"&gt;
&lt;P&gt;public MainPage()&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.InitializeComponent();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; DataContext = new MainPageViewModel();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MyMapView.NavigationCompleted += MyMapView_NavigationCompleted;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;private async void MyMapView_NavigationCompleted(object sender, EventArgs e)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyMapView.NavigationCompleted -= MyMapView_NavigationCompleted;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var geom = await MyMapView.Editor.RequestShapeAsync(DrawShape.Polygon);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; catch (Exception)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; // todo&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 11:52:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758560#M9477</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2014-11-12T11:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758561#M9478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;Hi Antti,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;Thx, great sample I could get it to work, and I tried to modify the code I have to use DataContext="{Binding&lt;BR /&gt;ElementName=mapView, Path=Editor.AddVertex}" instead of calling on Command=”AddVertex”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;What I the saw was that the AddVertex button is always active, meaning it does not check if it is an&lt;BR /&gt;edit session as I get with the other commands. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;Thanks for the help, we will do some more testing on this,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="line-height: 107%; font-family: 'Arial',sans-serif; font-size: 9.5pt; mso-ansi-language: EN-US;"&gt;Regards,&lt;BR /&gt;Jonas &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 08:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758561#M9478</guid>
      <dc:creator>JonasLeksell</dc:creator>
      <dc:date>2014-11-13T08:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758562#M9479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, it should check it. Are you able to create a repro for me to look at?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 10:31:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758562#M9479</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2014-11-13T10:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758563#M9480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antti, &lt;/P&gt;&lt;P&gt;Forget it... &lt;/P&gt;&lt;P&gt;I did set it in DataContext instead of Command. That´s why I got that behavior.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 10:01:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758563#M9480</guid>
      <dc:creator>JonasLeksell</dc:creator>
      <dc:date>2014-11-14T10:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758564#M9481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers. Remember to mark topic answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 11:01:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758564#M9481</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2014-11-14T11:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758565#M9482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Antti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm the reason for Jonas' question.&lt;BR /&gt;We have found you answer very helpful and I want to thank you for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it worked for us in your stand-alone application but not in our big project.&lt;BR /&gt;It turns out the difference was that you were always drawing new polygons &lt;BR /&gt;while we have been trying to edit present ones... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After some more digging, we have found out that the AddVertex button won't get enabled&lt;BR /&gt;if MapView.Editor.EditorMode == EditGeometry. &lt;STRONG&gt;It works only for EditorMode == Draw&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please confirm this and accept as a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Another question regarding AddVertex&lt;/STRONG&gt;&lt;BR /&gt;The newly added point ends up at the end of the vertex list (last in a line)&lt;BR /&gt;regadless of what has been highlighted by the user.&lt;BR /&gt;Is there any way of telling to the Editor that the point should be added after marked VertexPosition?&lt;BR /&gt;If not, I think it should be very high on your todo - list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Martin Brzezinka&lt;BR /&gt;Sweden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 08:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758565#M9482</guid>
      <dc:creator>MartinBrzezinka</dc:creator>
      <dc:date>2014-12-01T08:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758566#M9483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_Controls_Editor.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Editor &lt;/A&gt;is designed to perform edits on a map. This means that when EditorMode is set to Draw, it enables Editors functionality and in this case enables AddVertex. If you are editing geometry without performing it on the map, then Editor most likely isn't correct way to do it. If you're making changes to the geometry outside of the map, you should be modifying geometry directly using builders like &lt;A href="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_Geometry_PolygonBuilder.htm" title="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_Geometry_PolygonBuilder.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;PolygonBuilder Class &lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is small example how to modify existing polygon&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;PolygonBuilder builder = new PolygonBuilder(polygon); // Create builder from existing polygon
builder.AddPoint(new MapPoint(x, y)); // Add point to end
builder.Parts[0].InsertPoint(index, new MapPoint(x, y)); // Insert point into specific location
graphic.Geometry = builder.ToGeometry(); // Create geometry and assign it back to the graphic / feature&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that we haven't documented using Builders very well but we are going to improve that part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the second part, can you define a bit more detail the use case behind it and what is the workflow that you are looking from the editor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758566#M9483</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2021-12-12T08:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758567#M9484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Yes, the geometry is being edited on the map. The workflow in both cases is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User has a map in one layer, user drawn lines and polygons in another.&lt;/P&gt;&lt;P&gt;User selects a line or polygon to INTERACTIVELLY edit it with mouse or touch.&lt;/P&gt;&lt;P&gt;This triggers a call to &lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;async MapView.Editor.EditGeometryAsync(geometry);&lt;/SPAN&gt;&lt;BR /&gt;Buttons connected to MapView.Editor's ICommands are being enabled and disabled automatically.&lt;/P&gt;&lt;P&gt;This works fine for all graphics and all buttons &lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;(ICommands)&lt;/SPAN&gt;, &lt;BR /&gt;EXCEPT for just AddVertex on existing lines/polygons being edited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image026.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/36194_image026.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Our editing is done by calling an asyncronous method EditGeometryAsync&lt;/P&gt;&lt;P&gt;so I don't really see how do we jack in the PolygonBuilder there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our AddVertex button adds a GPS position which is just a regular MapPoint.&lt;/P&gt;&lt;P&gt;And as I said, it's working fine when drawing a new line or polygon.&lt;/P&gt;&lt;P&gt;But when editing an existing one, the AddVertex button won't ever get enabled.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;This seems to be due to a limitation inside the Editor&lt;BR /&gt;depending on which EditorMode is on, Draw or EditGraphic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: Consolas;"&gt;Second question remains: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;how do we tell the Editor where to add the new point when editing interactivelly?&lt;BR /&gt;User selects a node in a line or polygon.&lt;BR /&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;User needs &lt;/SPAN&gt;to INTERACTIVELLY (&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;by clicking on AddVertex button&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;add the new point after that selected &lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;node&lt;/SPAN&gt;,&lt;BR /&gt;not &lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;at the end of the&lt;/SPAN&gt; line as it is &lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;by default.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;I can see that here we could use the PolygonBuilder to &lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;add &lt;/SPAN&gt;a point where we want to.&lt;BR /&gt;The trouble is that property Editor.VertexPosition which I understand holds the highlighted node, is private.&lt;BR /&gt;Problem #2 is that at the same time, user needs to be able to &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;interactivelly edit the line, i.e. drag nodes with mouse&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;so we must use the asynchronous method and leave control over to the Editor, don't we?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 11:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758567#M9484</guid>
      <dc:creator>MartinBrzezinka</dc:creator>
      <dc:date>2014-12-01T11:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758568#M9485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had finally time to check this today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case one, it's true that &lt;STRONG&gt;AddVertex&lt;/STRONG&gt; is not available on when editing existing geometry. Currently there is no easy way to say for the editor that add new vertex after selected one while &lt;STRONG&gt;Editor&lt;/STRONG&gt; is active so I created new issue for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing editing, you can get vertex position reported back from the editor using following code but I'm not sure if that helps in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Progress&amp;lt;GeometryEditStatus&amp;gt; progress = new Progress&amp;lt;GeometryEditStatus&amp;gt;();
progress.ProgressChanged += progress_ProgressChanged;
...
var geometry = await MyMapView.Editor.EditGeometryAsync(feature.Geometry, null, progress);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;private void progress_ProgressChanged(object sender, GeometryEditStatus e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do stuff
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758568#M9485</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2021-12-12T08:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Command AddVertex</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758569#M9486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Antti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I look forward to get this fixed in the next release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 19:18:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/command-addvertex/m-p/758569#M9486</guid>
      <dc:creator>MartinBrzezinka</dc:creator>
      <dc:date>2014-12-08T19:18:58Z</dc:date>
    </item>
  </channel>
</rss>

