<?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: FeatureLayer labeling not working on 2D for JS API 4.5 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657219#M61303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mathias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Well until the 4.x API contains the ability to label in 2D then you limited to what is available. You are aware that you can have labeling for a layer if you define the labeling in the map service and then use a MapImageLayer and not a FeatureLayer right? The other option is like you said use the workaround you suggested. One of the main reasons that feature labeling is used on the client side is for when you give the user the ability to change the label field dynamically. If you do not need that ability then using a MapImageLayer is the obvious choice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 13:47:38 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-02-01T13:47:38Z</dc:date>
    <item>
      <title>FeatureLayer labeling not working on 2D for JS API 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657216#M61300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am using arcgis js api 4.5.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i&amp;nbsp;added new FeatureLayer with LabelClass to my application. but labels were not&amp;nbsp;visible&amp;nbsp;in MapView.&amp;nbsp;if change to SceneView , labels were visible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is wrong? MapView has any options for labeling?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i attached the sample code. the sample code extended &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/views-switch-2d-3d/index.html"&gt;this sample&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Nov 2017 12:21:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657216#M61300</guid>
      <dc:creator>EmreDelioglu</dc:creator>
      <dc:date>2017-11-12T12:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer labeling not working on 2D for JS API 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657217#M61301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Emre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Right on the LabelClass docs you will find this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #4c4c4c; margin-bottom: 1.55rem;"&gt;&lt;STRONG style="font-weight: 500;"&gt;Known Limitations&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #4c4c4c; margin-bottom: 1.55rem;"&gt;There is no support for labeling in 2D. Labeling is only supported in 3D&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html" style="color: #0079c1; text-decoration: none;"&gt;SceneViews&lt;/A&gt;.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 13:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657217#M61301</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-13T13:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer labeling not working on 2D for JS API 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657218#M61302</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;I also experienced this today. I spent a few hours trying to get labels to work. I have used them in the 3.x API and know they can be tricky to work correctly so I thought I was not using the API correctly. Some hours later I noticed that little comment &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;Oh well... This is not the first time with the 4.x API, I'm afraid. I understand it can take a long time to make it as feature rich as the old one. It's very tempting to use the new API, for many reasons, but you get "burnt" when "little" things (I have of course no idea on how hard labels is to get working on 2D in 4.x) like this does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could we get any comment from someone from Esri on if adding this is on the backlog, and if so when it might be released? I have been thinking of using the workaround of duplicating each graphic I add to the map (to have two feature layers, really) where one have a text symbol and the other a "dot", but it feels like quite a hack...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 10:57:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657218#M61302</guid>
      <dc:creator>MathiasDahl</dc:creator>
      <dc:date>2018-02-01T10:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer labeling not working on 2D for JS API 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657219#M61303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mathias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Well until the 4.x API contains the ability to label in 2D then you limited to what is available. You are aware that you can have labeling for a layer if you define the labeling in the map service and then use a MapImageLayer and not a FeatureLayer right? The other option is like you said use the workaround you suggested. One of the main reasons that feature labeling is used on the client side is for when you give the user the ability to change the label field dynamically. If you do not need that ability then using a MapImageLayer is the obvious choice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 13:47:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657219#M61303</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-01T13:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer labeling not working on 2D for JS API 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657220#M61304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for the comment. Yes, I am aware of "server-side labelling". I did not mention here that in my current scenario, I am "plotting" the features manually. I.e. they don't come from the feature service/server (I have made other maps with uses feature services properly, using the 3.x API). So I am either using a FeatureLayer with the source property set when creating it, or I am using a graphics layer, but it does not support labelling at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 14:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657220#M61304</guid>
      <dc:creator>MathiasDahl</dc:creator>
      <dc:date>2018-02-01T14:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer labeling not working on 2D for JS API 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657221#M61305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, then like you mentioned the two graphics with different symbols is your only option now then.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 14:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657221#M61305</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-01T14:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer labeling not working on 2D for JS API 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657222#M61306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, looks like it. I actually took the plunge and tried it out and it turns out it was both easy and performant. SInce I am using a graphics layer I can use the same layer for the "real" (marker) symbols as well as the "labels" (text symbols). More or less it's a handful of extra lines of code when I already have my coordinates at hand. I experimented with 1000 symbols (times 2, really, because of the duplication of the symbols) and toggling on and off "labels" (by removing the text symbols I toggle them off) takes less than a second. I also tried with 10,000 (times 2) symbols and then the API/browser/CPU start to get on its knees (it did work though, no crashes), but that is not a very relevant scenario in my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the comments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 09:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657222#M61306</guid>
      <dc:creator>MathiasDahl</dc:creator>
      <dc:date>2018-02-05T09:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer labeling not working on 2D for JS API 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657223#M61307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN title=""&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="" title=""&gt;I'm using the JS 4.7 version, and I'm having the same problem.&lt;/SPAN&gt; &lt;SPAN class="" title=""&gt;I can not display labels on a featureLayer for a 2D view.&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="" title=""&gt; I need this option because the final client of the application should be able to bring changes on the featureLayer (that's why it is not usefull for us to use MapImageLayers). Is there any workaround to manage this ?&lt;/SPAN&gt;&lt;SPAN class="" title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 13:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657223#M61307</guid>
      <dc:creator>RaisaTABOUGUIA1</dc:creator>
      <dc:date>2018-04-30T13:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer labeling not working on 2D for JS API 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657224#M61308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raisa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The ability to do that is just not there yet in 4.x and there is not know workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 14:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657224#M61308</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-04-30T14:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer labeling not working on 2D for JS API 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657225#M61309</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;&amp;nbsp; I need this functionnality too. Do you have a release date to communicate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 07:10:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-labeling-not-working-on-2d-for-js-api/m-p/657225#M61309</guid>
      <dc:creator>xavierlhomme</dc:creator>
      <dc:date>2018-05-02T07:10:48Z</dc:date>
    </item>
  </channel>
</rss>

