<?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>idea Provide better Label support of Feature Layers in ArcGIS Server JavaScript API in Developers Ideas</title>
    <link>https://community.esri.com/t5/developers-ideas/provide-better-label-support-of-feature-layers-in/idi-p/923621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;
	In the JavaScript API, there's FeatureLayer and LabelLayer classes. However, the LabelLayer class does not currently deal with conflict resolution of the labels. The labels need to be better associated with the graphics of the FeatureLayer, and supported by the same "conflict resolution" issues that face those graphics (ie., overlapping graphics). We ran into this when attempting to handle overlapping SimpleMarkerSymbols with labels. You could not tell which marker symbol the label was associated with. And in cases where part of the simple marker symbol was showing up, the label should have also shown up.&amp;nbsp; Your samples lead us to handling this with icon marker symbols, but we're dealing with thousands of these with unique label values&amp;nbsp;so the icon marker symbols won't cut it.&lt;BR /&gt;	&amp;nbsp;&lt;/P&gt;
&lt;P&gt;
	We also researched using SVG graphics to solve this problem but since we can only use a path element, we had no way to associate a marker and a text together. So&amp;nbsp; possibly providing more capabilities with SVG graphics could help solve this problem.&lt;/P&gt;

&lt;!-- content transformation source ID: 087E00000005Foa --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2014 14:35:48 GMT</pubDate>
    <dc:creator>KarenRobine</dc:creator>
    <dc:date>2014-09-03T14:35:48Z</dc:date>
    <item>
      <title>Provide better Label support of Feature Layers in ArcGIS Server JavaScript API</title>
      <link>https://community.esri.com/t5/developers-ideas/provide-better-label-support-of-feature-layers-in/idi-p/923621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;
	In the JavaScript API, there's FeatureLayer and LabelLayer classes. However, the LabelLayer class does not currently deal with conflict resolution of the labels. The labels need to be better associated with the graphics of the FeatureLayer, and supported by the same "conflict resolution" issues that face those graphics (ie., overlapping graphics). We ran into this when attempting to handle overlapping SimpleMarkerSymbols with labels. You could not tell which marker symbol the label was associated with. And in cases where part of the simple marker symbol was showing up, the label should have also shown up.&amp;nbsp; Your samples lead us to handling this with icon marker symbols, but we're dealing with thousands of these with unique label values&amp;nbsp;so the icon marker symbols won't cut it.&lt;BR /&gt;	&amp;nbsp;&lt;/P&gt;
&lt;P&gt;
	We also researched using SVG graphics to solve this problem but since we can only use a path element, we had no way to associate a marker and a text together. So&amp;nbsp; possibly providing more capabilities with SVG graphics could help solve this problem.&lt;/P&gt;

&lt;!-- content transformation source ID: 087E00000005Foa --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:35:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/provide-better-label-support-of-feature-layers-in/idi-p/923621</guid>
      <dc:creator>KarenRobine</dc:creator>
      <dc:date>2014-09-03T14:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Provide better Label support of Feature Layers in ArcGIS Server JavaScript API</title>
      <link>https://community.esri.com/t5/developers-ideas/provide-better-label-support-of-feature-layers-in/idc-p/923622#M87</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I agree - options like 'never remove' so that features don't lose labels, as well as the ability to 'stack' labels to make them fit would make such a difference. This is along the lines of what is available in the Maplex label engine in ArcMap.

&lt;!-- content transformation source ID: 00aE0000009rjrA --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 18:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/provide-better-label-support-of-feature-layers-in/idc-p/923622#M87</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-01-28T18:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Provide better Label support of Feature Layers in ArcGIS Server JavaScript API</title>
      <link>https://community.esri.com/t5/developers-ideas/provide-better-label-support-of-feature-layers-in/idc-p/923623#M88</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="background-color: #ffffff;"&gt;The labels need to be better associated with the graphics of the FeatureLayer" Agreed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I was trying to modify labels of FeatureLayer polygons so that they would not be one long horizontal string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;However, currently there seems to be no way of accessing and modifying those labels after&amp;nbsp;setting them as properties during construction of FeatureLayer classes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I thought about iterating through the FeatureLayerView's graphics, but there's no way of accessing labels through graphics or symbols.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Another great solution would be to allow the LabelClass's labelExpressionInfo property to accept a function as an argument, and have feature attributes available within that function.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only current solution seems to be to create an independent set of Text graphics, and set their positions to correspond with respective features in the FeatureLayer. This seems messy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;A similar story goes for popups.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I'm using 4.0 right now.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 17:49:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/provide-better-label-support-of-feature-layers-in/idc-p/923623#M88</guid>
      <dc:creator>GodfreyYeung1</dc:creator>
      <dc:date>2016-09-16T17:49:39Z</dc:date>
    </item>
  </channel>
</rss>

