<?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: Why isn't the highlight method working in a 2d layer view? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-isn-t-the-highlight-method-working-in-a-2d/m-p/1096847#M74628</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/518982"&gt;@avmesquita&lt;/a&gt;&amp;nbsp; This post is 3 years old and no longer applies to the current JS API.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 17:03:57 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-09-09T17:03:57Z</dc:date>
    <item>
      <title>Why isn't the highlight method working in a 2d layer view?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-isn-t-the-highlight-method-working-in-a-2d/m-p/84938#M7657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to simply highlight a graphic from a feature layer using the highlight method on the feature layer view (&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#highlight"&gt;Highlight&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the basic feature layer example by adding this section:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;view.whenLayerView(featureLayer).then(function (lyrView) {&lt;BR /&gt;&amp;nbsp;lyrView.highlight(1148);&lt;BR /&gt; });&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a live example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://jsbin.com/nebozosagu/edit?html,output"&gt;Live Example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did notice this caveat in the documentation, but I am setting the webgl property in the dojo config:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #4c4c4c; margin-bottom: 1.55rem;"&gt;&lt;STRONG&gt;Known Limitations&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #4c4c4c; margin-bottom: 1.55rem;"&gt;&lt;STRONG&gt;In 2D&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html" style="color: #0079c1; text-decoration: none;"&gt;MapViews&lt;/A&gt;&amp;nbsp;this method is only supported for&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html" style="color: #0079c1; text-decoration: none;"&gt;FeatureLayers&lt;/A&gt;&amp;nbsp;that have opted in to&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#webgl-rendering" style="color: #0079c1; text-decoration: none;"&gt;WebGL rendering&lt;/A&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #4c4c4c; margin-bottom: 1.55rem;"&gt;I'm not sure if there is something I'm doing wrong, or if it's a bug in the js sdk.&amp;nbsp; Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 20:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-isn-t-the-highlight-method-working-in-a-2d/m-p/84938#M7657</guid>
      <dc:creator>JackFairfield</dc:creator>
      <dc:date>2018-03-19T20:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why isn't the highlight method working in a 2d layer view?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-isn-t-the-highlight-method-working-in-a-2d/m-p/84939#M7658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any ideas?&amp;nbsp; I still haven't figured it out.&amp;nbsp; Seems like it should be straightforward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 16:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-isn-t-the-highlight-method-working-in-a-2d/m-p/84939#M7658</guid>
      <dc:creator>JackFairfield</dc:creator>
      <dc:date>2018-03-28T16:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why isn't the highlight method working in a 2d layer view?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-isn-t-the-highlight-method-working-in-a-2d/m-p/84940#M7659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jack,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The support for webGL rendering is currently only available when using a AGOL hosted feature service. When 10.6.1 ArcGIS Server comes out you will be able to use webGL with your map services.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 16:06:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-isn-t-the-highlight-method-working-in-a-2d/m-p/84940#M7659</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-03-28T16:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why isn't the highlight method working in a 2d layer view?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-isn-t-the-highlight-method-working-in-a-2d/m-p/1096837#M74626</link>
      <description>&lt;P&gt;Ok. I understand.&lt;BR /&gt;&lt;BR /&gt;It seems weird.&lt;BR /&gt;&lt;BR /&gt;But, if I use a Popup with attributes, without hosted feature service, hightlight does work automaticaly.&lt;BR /&gt;&lt;BR /&gt;Why?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 16:37:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-isn-t-the-highlight-method-working-in-a-2d/m-p/1096837#M74626</guid>
      <dc:creator>avmesquita</dc:creator>
      <dc:date>2021-09-09T16:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why isn't the highlight method working in a 2d layer view?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-isn-t-the-highlight-method-working-in-a-2d/m-p/1096847#M74628</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/518982"&gt;@avmesquita&lt;/a&gt;&amp;nbsp; This post is 3 years old and no longer applies to the current JS API.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 17:03:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-isn-t-the-highlight-method-working-in-a-2d/m-p/1096847#M74628</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-09-09T17:03:57Z</dc:date>
    </item>
  </channel>
</rss>

