<?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: ArcGIS API for JavaScript: StreamLayer: Labels in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript-streamlayer-labels/m-p/326075#M30062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had some success with labels. API 3.11 has a problem with placing point labels (only places them with the above-right default). I can see the problem in labellayer.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot see how to set label priorities?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 21:42:55 GMT</pubDate>
    <dc:creator>TodStevens</dc:creator>
    <dc:date>2014-10-16T21:42:55Z</dc:date>
    <item>
      <title>ArcGIS API for JavaScript: StreamLayer: Labels</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript-streamlayer-labels/m-p/326073#M30060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone been able to turn on labels for streamlayers in ArcGIS API for JavaScript?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The samples do not show any labels (dots with labels are not very useful), but the API has the ability to via SetLabelingInfo. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the streamlayer sandbox to test this (full sample attached)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var labelClass = new LabelClass({&lt;/P&gt;&lt;P&gt;&amp;nbsp; labelExpression: '[BusNo]',&lt;/P&gt;&lt;P&gt;&amp;nbsp; labelPlacement: 'always-horizontal'&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; labelClass.symbol = new TextSymbol({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; font: new Font("12", Font.STYLE_NORMAL, Font.VARIANT_NORMAL, Font.WEIGHT_BOLD, "Helvetica"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color: new Color("#666633") &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;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; &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; layer.setLabelingInfo([labelClass]);&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; layer.setShowLabels(true);&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; layer.setRenderer( renderer );&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 06:02:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript-streamlayer-labels/m-p/326073#M30060</guid>
      <dc:creator>TodStevens</dc:creator>
      <dc:date>2014-10-14T06:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for JavaScript: StreamLayer: Labels</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript-streamlayer-labels/m-p/326074#M30061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still can not use the labelinfo mechanism in the streamlayer to add labels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to add a client-side label layer and add labels when not using a basemap. I had to use an added featurelayer as the base map (I do not know why that affected labelling)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The additional problem with client side labelling with a label layer is that labels hang around after the renderer of the stream adds a new point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var temporalRenderer = new TemporalRenderer(null , latestObsRenderer, null, null);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I make the obsRenderer=null so I only see the latest observations from the stream. The label for the older observation remains around for a while (a refresh/redraw issue)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 00:35:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript-streamlayer-labels/m-p/326074#M30061</guid>
      <dc:creator>TodStevens</dc:creator>
      <dc:date>2014-10-15T00:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for JavaScript: StreamLayer: Labels</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript-streamlayer-labels/m-p/326075#M30062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had some success with labels. API 3.11 has a problem with placing point labels (only places them with the above-right default). I can see the problem in labellayer.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot see how to set label priorities?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 21:42:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript-streamlayer-labels/m-p/326075#M30062</guid>
      <dc:creator>TodStevens</dc:creator>
      <dc:date>2014-10-16T21:42:55Z</dc:date>
    </item>
  </channel>
</rss>

