<?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: Why is SketchEditor marked as sealed in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499595#M6136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can use Polyline/Polygon builder with SketchEditor. If selecting vertex by tap to specify where AddCommand will insert new vertex is not enough, you can use polygonBuilder.Parts[0].SetPoint(index, MapPoint) for example and then update geometry using SketchEditor.ReplaceGeometry(polygonBuilder.ToGeometry()) so that edit tools (vertex, mid-vertex, selected vertex) are re-drawn with the new geometry. You can either turn on/off SketchEditor.IsEnabled so you can also interactively add/insert/move/delete vertex or keep using Add/DeleteCommand to programmatically update geometry, these commands&amp;nbsp;act on selected vertex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2016 22:49:02 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2016-11-22T22:49:02Z</dc:date>
    <item>
      <title>Why is SketchEditor marked as sealed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499588#M6129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why have you marked the SketchEditor class as sealed?&lt;/P&gt;&lt;P&gt;The Editor class in the previous version (10.2.7) was not sealed and we could easily adjust the functionality as needed.&lt;/P&gt;&lt;P&gt;Please change this in the next release! We are not able to upgrade to version 100.0.0 until this is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 13:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499588#M6129</guid>
      <dc:creator>TorstenVikstrom</dc:creator>
      <dc:date>2016-11-22T13:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why is SketchEditor marked as sealed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499589#M6130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In 10.2.x, Editor was not sealed because you can override OnGenerateSymbol. In 100.0.0, SketchEditor has SketchStyle which you can use&amp;nbsp;to update&amp;nbsp;Symbology. Do you have a specific use case that is currently not addressed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jennifer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:02:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499589#M6130</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2016-11-22T20:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why is SketchEditor marked as sealed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499590#M6131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennifer,&lt;/P&gt;&lt;P&gt;I will answer this as I implemented our solution.&lt;/P&gt;&lt;P&gt;We are currently doing an override of OnGenerateSymbol but only to keep track of the selected vertex (if any).&lt;/P&gt;&lt;P&gt;In addition to this we use a bit of&amp;nbsp;reflection magic to enable our users to create and edit geometries using not only mouse/touch but GPS data and other positioning devices as well. This is not possible through the editor unless we are able to derive from it.&lt;/P&gt;&lt;P&gt;With kind regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:34:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499590#M6131</guid>
      <dc:creator>StefanKallin1</dc:creator>
      <dc:date>2016-11-22T20:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is SketchEditor marked as sealed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499591#M6132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the clarification. You should be able to insert MapPoint from another source (without interaction with&amp;nbsp;map)&amp;nbsp;by calling AddCommand. Either these snippet will insert after selected vertex. If you want to disable SketchEditor from responding to map interaction, mark SketchEditor.IsEnabled=False so no tap event will add vertex but instead programmatically insert after selected vertex. Last vertex added in Polyline/Polygon becomes the new selected vertex, but you can tap to select a vertex to insert after that position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(MyMapView.SketchEditor.AddCommand.CanExecute(MapPointSource))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MyMapView.SketchEditor.AddCommand.Execute(MapPointSource);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Button Content="Add" Command="{Binding AddCommand}" CommandParameter="{Binding ElementName=Coordinates, Path=SelectedItem}" DataContext="Binding&lt;/P&gt;&lt;P&gt;ElementName=MyMapView, Path=SketchEditor}"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jennifer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:52:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499591#M6132</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2016-11-22T20:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is SketchEditor marked as sealed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499592#M6133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennifer,&lt;/P&gt;&lt;P&gt;The ability to add points from other sources using the AddCommand is&amp;nbsp; good, but not quite good enough.&lt;/P&gt;&lt;P&gt;We still need the ability to move a selected vertex using data from any source, GPS or similar.&lt;/P&gt;&lt;P&gt;During editing it is also useful to let the user select a vertex and then add new points after the selected one and not only at the end of the geometry.&lt;/P&gt;&lt;P&gt;The ability to create a new geometry using commands was already present in the old implementation but our implementation does also cover any additional editing.&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 21:27:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499592#M6133</guid>
      <dc:creator>StefanKallin1</dc:creator>
      <dc:date>2016-11-22T21:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is SketchEditor marked as sealed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499593#M6134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean you also need to programmatically update selected vertex? Currently, you will only be able to update selected vertex by tapping onto a vertex with SketchEditor.Enabled=True. The next&amp;nbsp;AddCommand&amp;nbsp;will add vertex after this selected vertex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also might want to look at Polyline/PolygonBuilder to update your geometry. It has AddPoint, InsertPoint, SetPoint, RemovePoint, etc that might better suit your need. This gives you more control over which index you want to insert the point. You can then&amp;nbsp;use SketchEditor.ReplaceGeometry(geometry) with geometry from builder if you need this geometry change&amp;nbsp;to be added onto the undo stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will that work for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 21:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499593#M6134</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2016-11-22T21:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why is SketchEditor marked as sealed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499594#M6135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We would like to be able to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create new geometries using whatever positioning sources our users feel like using&lt;/LI&gt;&lt;LI&gt;Edit existing geometries and add or move vertexes using whatever positioning sources our user feel like using&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Of course we could use the Polyline/PolygonBuilder but this would, in effect, mean that we have to&amp;nbsp;implement a fully featured version of the new&amp;nbsp;SketchEditor to replace our extension of the old Editor. I may come across as a bit grumpy but you really have to factor in your existing users when you change your API.&lt;/P&gt;&lt;P&gt;The key issue is that our present implementation use the Editor in a fashion that let the users mix mouse/touch input, GPS data capture and data from other positioning sources when they create or edit geometries.&lt;/P&gt;&lt;P&gt;Are you suggesting that we are able to inject data into the geometry builder while the SketchEditor is active?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 22:26:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499594#M6135</guid>
      <dc:creator>StefanKallin1</dc:creator>
      <dc:date>2016-11-22T22:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why is SketchEditor marked as sealed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499595#M6136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can use Polyline/Polygon builder with SketchEditor. If selecting vertex by tap to specify where AddCommand will insert new vertex is not enough, you can use polygonBuilder.Parts[0].SetPoint(index, MapPoint) for example and then update geometry using SketchEditor.ReplaceGeometry(polygonBuilder.ToGeometry()) so that edit tools (vertex, mid-vertex, selected vertex) are re-drawn with the new geometry. You can either turn on/off SketchEditor.IsEnabled so you can also interactively add/insert/move/delete vertex or keep using Add/DeleteCommand to programmatically update geometry, these commands&amp;nbsp;act on selected vertex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 22:49:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499595#M6136</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2016-11-22T22:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why is SketchEditor marked as sealed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499596#M6137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SketchEditor.Geometry has the current state of geometry. When GeometryUpdated event is raised, its event args also contain the OldGeometry. I think this property and event might be of interest when using a geometry builder along side SketchEditor to keep them in sync.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 22:52:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499596#M6137</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2016-11-22T22:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why is SketchEditor marked as sealed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499597#M6138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK,&lt;/P&gt;&lt;P&gt;I will take a shot tomorrow and make a test app to verify this.&lt;/P&gt;&lt;P&gt;It does sound a bit cumbersome but I will reserve my judgement until I have tried it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 22:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499597#M6138</guid>
      <dc:creator>StefanKallin1</dc:creator>
      <dc:date>2016-11-22T22:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is SketchEditor marked as sealed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499598#M6139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have now played around with the SketchEditor and found ways to make it do the things we want.&lt;/P&gt;&lt;P&gt;In my test app I am able to use a combination of input devices to add and move vertices through the SketchEditor without the use of any GeometryBuilder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 15:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499598#M6139</guid>
      <dc:creator>StefanKallin1</dc:creator>
      <dc:date>2016-11-23T15:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why is SketchEditor marked as sealed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499599#M6140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is good to hear. Thanks for sharing your feedback. Please continue to share any tips/comments to this forum. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 16:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-is-sketcheditor-marked-as-sealed/m-p/499599#M6140</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2016-11-23T16:06:45Z</dc:date>
    </item>
  </channel>
</rss>

