<?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 Feature Layer Label Style in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/feature-layer-label-style/m-p/131359#M1505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add street lines with labels from a geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this working using&amp;nbsp;a FeatureLayer and a GeodatabaseFeatureTable. &amp;nbsp;I can easily control the styling of the line but see no way to simply set the label color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code I am using to create the feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var gdb = await Esri.ArcGISRuntime.Data.Geodatabase.OpenAsync(f);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// get the first table&lt;/P&gt;&lt;P&gt;var gdbFeatureTable = gdb.GeodatabaseFeatureTable(0);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // create a FeatureLayer to display the table&lt;BR /&gt; fl = new FeatureLayer(gdbFeatureTable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Symbol sym = new SimpleLineSymbol(SimpleLineSymbolStyle.Solid, Color.Gray, 14);&lt;/P&gt;&lt;P&gt;SimpleRenderer sr = new SimpleRenderer(sym);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fl.Renderer = new SimpleRenderer(sym);&lt;/P&gt;&lt;P&gt;fl.LabelsEnabled = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems like such a simple thing, what am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any sample code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 May 2017 14:28:37 GMT</pubDate>
    <dc:creator>MarcTidd</dc:creator>
    <dc:date>2017-05-08T14:28:37Z</dc:date>
    <item>
      <title>Feature Layer Label Style</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/feature-layer-label-style/m-p/131359#M1505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add street lines with labels from a geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this working using&amp;nbsp;a FeatureLayer and a GeodatabaseFeatureTable. &amp;nbsp;I can easily control the styling of the line but see no way to simply set the label color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code I am using to create the feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var gdb = await Esri.ArcGISRuntime.Data.Geodatabase.OpenAsync(f);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// get the first table&lt;/P&gt;&lt;P&gt;var gdbFeatureTable = gdb.GeodatabaseFeatureTable(0);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // create a FeatureLayer to display the table&lt;BR /&gt; fl = new FeatureLayer(gdbFeatureTable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Symbol sym = new SimpleLineSymbol(SimpleLineSymbolStyle.Solid, Color.Gray, 14);&lt;/P&gt;&lt;P&gt;SimpleRenderer sr = new SimpleRenderer(sym);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fl.Renderer = new SimpleRenderer(sym);&lt;/P&gt;&lt;P&gt;fl.LabelsEnabled = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems like such a simple thing, what am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any sample code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 14:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/feature-layer-label-style/m-p/131359#M1505</guid>
      <dc:creator>MarcTidd</dc:creator>
      <dc:date>2017-05-08T14:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Label Style</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/feature-layer-label-style/m-p/131360#M1506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently in v100.0 you need to setup the labels for your lines in ArcGIS Pro before creating your Mobile Map Package (or publishing a sync-enabled feature service). In the upcoming Update 1 release we plan to add some support to the API for setting label style and behavior programmatically, followed by a more extensive API in Update 2 later this year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 15:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/feature-layer-label-style/m-p/131360#M1506</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2017-05-09T15:49:32Z</dc:date>
    </item>
  </channel>
</rss>

