<?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: How to add a point to feature layer that is published as a feature service? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-add-a-point-to-feature-layer-that-is/m-p/162948#M4044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Selcan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One approach would be using editing tools such as TemplatePicker and EditorWidget controls. Please see the following URLs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitTemplatePicker" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitTemplatePicker&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another approach would be adding points in your map MouseLeftButtonUp event handler. You can do so by getting the MapPoint where the mouse was clicked:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
MapPoint mapPoint = MapView.ScreenToMap(e.GetPosition(yourMapView));
&lt;/PRE&gt;&lt;SPAN&gt;Then creating a Graphic to be added to your FeatureLayer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Graphic graphic = new Graphic() { Geometry = mapPoint, Symbol = yourFeatureLayer.FeatureSymbol };
&lt;/PRE&gt;&lt;SPAN&gt;Please note that if your FeatureLayer doesn't have a default symbol then you need to define your own marker symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You would also need to add attributes to your Graphic. You can do so by looping through your FeatureLayer's "LayerInfo.Fields" to get all fields and set their values in your Graphic's attribute collection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 08:33:11 GMT</pubDate>
    <dc:creator>AliMirzabeigi</dc:creator>
    <dc:date>2021-12-11T08:33:11Z</dc:date>
    <item>
      <title>How to add a point to feature layer that is published as a feature service?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-add-a-point-to-feature-layer-that-is/m-p/162947#M4043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have published a feature service,(SDE database.featuredataset.featureclass) .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using this layer in a silverlight project with arcgis api for Silverlight and want to add a point to featureclass in sde with c# code (in silverlightapplication.xaml.cs file. )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I add a point to feature class interactively?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 13:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-add-a-point-to-feature-layer-that-is/m-p/162947#M4043</guid>
      <dc:creator>SelcanGuner</dc:creator>
      <dc:date>2010-10-05T13:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a point to feature layer that is published as a feature service?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-add-a-point-to-feature-layer-that-is/m-p/162948#M4044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Selcan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One approach would be using editing tools such as TemplatePicker and EditorWidget controls. Please see the following URLs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitTemplatePicker" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitTemplatePicker&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another approach would be adding points in your map MouseLeftButtonUp event handler. You can do so by getting the MapPoint where the mouse was clicked:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
MapPoint mapPoint = MapView.ScreenToMap(e.GetPosition(yourMapView));
&lt;/PRE&gt;&lt;SPAN&gt;Then creating a Graphic to be added to your FeatureLayer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Graphic graphic = new Graphic() { Geometry = mapPoint, Symbol = yourFeatureLayer.FeatureSymbol };
&lt;/PRE&gt;&lt;SPAN&gt;Please note that if your FeatureLayer doesn't have a default symbol then you need to define your own marker symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You would also need to add attributes to your Graphic. You can do so by looping through your FeatureLayer's "LayerInfo.Fields" to get all fields and set their values in your Graphic's attribute collection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:33:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-add-a-point-to-feature-layer-that-is/m-p/162948#M4044</guid>
      <dc:creator>AliMirzabeigi</dc:creator>
      <dc:date>2021-12-11T08:33:11Z</dc:date>
    </item>
  </channel>
</rss>

