<?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 How add style to the new feature on a ServiceFeatureTable in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-add-style-to-the-new-feature-on-a/m-p/439985#M5309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can add a feature to my&amp;nbsp;ServiceFeatureTable and I can see on ArcGisOnline the new feature is there. But I cant see it on the map. Is the point invisible? Do I need to add some style? Or isn't the feature georeferenced yet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ServiceFeatureTable tblWorkers = new ServiceFeatureTable(featureTableUri);&lt;/P&gt;&lt;P&gt;// load the feature table&lt;BR /&gt; await tblWorkers.LoadAsync();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var attributes = new Dictionary&amp;lt;string, object&amp;gt;&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; { "worker_id", 3 },&lt;BR /&gt;&amp;nbsp; &amp;nbsp; { "x_lat", -66.88 },&lt;BR /&gt;&amp;nbsp; &amp;nbsp; { "y_long", 10.55 },&lt;BR /&gt;&amp;nbsp; &amp;nbsp; { "time", "2017-12-24 18:00:00" }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;MapPoint structureLocation = new MapPoint(-66.88, 10.55);&lt;/P&gt;&lt;P&gt;// create a new feature in the damage table, pass in the attributes and geometry&lt;BR /&gt; Feature newFeature = tblWorkers.CreateFeature(attributes, structureLocation);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// add the new feature (this updates the local copy of the table)&lt;BR /&gt; await tblWorkers.AddFeatureAsync(newFeature);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// push this update (apply edits) to the feature service&lt;BR /&gt; IReadOnlyList&amp;lt;EditResult&amp;gt; editResults = await tblWorkers.ApplyEditsAsync();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first I load my layer from a shape and I can select the red point and see it selected on the map. The green one I add it from .net but doesn't show in the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://i.stack.imgur.com/lQzGD.jpg" style="width: 620px; height: 486px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jan 2018 23:19:51 GMT</pubDate>
    <dc:creator>JuanOropeza</dc:creator>
    <dc:date>2018-01-08T23:19:51Z</dc:date>
    <item>
      <title>How add style to the new feature on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-add-style-to-the-new-feature-on-a/m-p/439985#M5309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can add a feature to my&amp;nbsp;ServiceFeatureTable and I can see on ArcGisOnline the new feature is there. But I cant see it on the map. Is the point invisible? Do I need to add some style? Or isn't the feature georeferenced yet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ServiceFeatureTable tblWorkers = new ServiceFeatureTable(featureTableUri);&lt;/P&gt;&lt;P&gt;// load the feature table&lt;BR /&gt; await tblWorkers.LoadAsync();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var attributes = new Dictionary&amp;lt;string, object&amp;gt;&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; { "worker_id", 3 },&lt;BR /&gt;&amp;nbsp; &amp;nbsp; { "x_lat", -66.88 },&lt;BR /&gt;&amp;nbsp; &amp;nbsp; { "y_long", 10.55 },&lt;BR /&gt;&amp;nbsp; &amp;nbsp; { "time", "2017-12-24 18:00:00" }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;MapPoint structureLocation = new MapPoint(-66.88, 10.55);&lt;/P&gt;&lt;P&gt;// create a new feature in the damage table, pass in the attributes and geometry&lt;BR /&gt; Feature newFeature = tblWorkers.CreateFeature(attributes, structureLocation);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// add the new feature (this updates the local copy of the table)&lt;BR /&gt; await tblWorkers.AddFeatureAsync(newFeature);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// push this update (apply edits) to the feature service&lt;BR /&gt; IReadOnlyList&amp;lt;EditResult&amp;gt; editResults = await tblWorkers.ApplyEditsAsync();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first I load my layer from a shape and I can select the red point and see it selected on the map. The green one I add it from .net but doesn't show in the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://i.stack.imgur.com/lQzGD.jpg" style="width: 620px; height: 486px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 23:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-add-style-to-the-new-feature-on-a/m-p/439985#M5309</guid>
      <dc:creator>JuanOropeza</dc:creator>
      <dc:date>2018-01-08T23:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: How add style to the new feature on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-add-style-to-the-new-feature-on-a/m-p/439986#M5310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you're missing the call to table.AddFeature(newFeature); This should make it show locally. All pending edits can then be pushed back up to the server for others to see by calling ApplyEditsAsync.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 00:38:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-add-style-to-the-new-feature-on-a/m-p/439986#M5310</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-01-09T00:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: How add style to the new feature on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-add-style-to-the-new-feature-on-a/m-p/439987#M5311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I forgot add the that line, I already add the feature as you can see on the last picture the new feature is there in the online layer (the green one) but doesn't show on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, shouldnt be a direct way so I link my database to my FeatureLayer so this process be automatic?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 12:49:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-add-style-to-the-new-feature-on-a/m-p/439987#M5311</guid>
      <dc:creator>JuanOropeza</dc:creator>
      <dc:date>2018-01-09T12:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How add style to the new feature on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-add-style-to-the-new-feature-on-a/m-p/439988#M5312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample that reproduces the issue. It's hard to guess where things are going wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 23:29:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-add-style-to-the-new-feature-on-a/m-p/439988#M5312</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-01-10T23:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: How add style to the new feature on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-add-style-to-the-new-feature-on-a/m-p/439989#M5313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe an issue with the SpatialReference? Your coordinates looks like WGS84, but WebMaps usally use WebMercator.&lt;/P&gt;&lt;P&gt;Have you tried to add the coordinate with an explicit SpatialReference?&lt;/P&gt;&lt;PRE class="line-numbers language-csharp"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;MapPoint&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; SpatialReferences&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Wgs84&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 08:27:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-add-style-to-the-new-feature-on-a/m-p/439989#M5313</guid>
      <dc:creator>MaximilianGlas</dc:creator>
      <dc:date>2018-01-11T08:27:39Z</dc:date>
    </item>
  </channel>
</rss>

