<?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: How to change the Callout of a FeatureLayer that is already on the SceneView in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-the-callout-of-a-featurelayer-that/m-p/1399194#M84101</link>
    <description>&lt;P&gt;Thanks for reporting, this seems to be a bug. Sent to dev team for further investigation.&lt;/P&gt;&lt;P&gt;I did a few tests but at the moment I can't provide a good workaround.&lt;BR /&gt;Use "on-the-ground" of course if that's an option.&lt;BR /&gt;Or clone/recreate the whole layer (with new callout config in constructor), but clearly not great either depending on your use case.&lt;/P&gt;&lt;P&gt;Will keep you posted if more intel comes up.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 18:41:33 GMT</pubDate>
    <dc:creator>AndreasUlmer</dc:creator>
    <dc:date>2024-03-21T18:41:33Z</dc:date>
    <item>
      <title>How to change the Callout of a FeatureLayer that is already on the SceneView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-the-callout-of-a-featurelayer-that/m-p/1398885#M84092</link>
      <description>&lt;P&gt;I already have a FeatureLayer with Callout on SceneView, and I want to change the style of Callout, but it doesn't seem to be updated on SceneView.&lt;/P&gt;&lt;P&gt;This is my updated Callout style code: ↓&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// get featureLayer.labelingInfo's cloned class
const labelingInfoCache = peaks.labelingInfo[0].clone()
// get featureLayer.labelingInfo.symbol cloned class
const symbol = labelingInfoCache.symbol.clone()

// disconnect from featurelayer
peaks.labelingInfo = null

// update properties
symbol.symbolLayers.at(0).material = {
  color: [Math.random() * 255, Math.random() * 255, Math.random() * 255],
}

symbol.callout = {
  type: "line",
  color: [Math.random() * 255, Math.random() * 255, Math.random() * 255],
  border: {
    color: [Math.random() * 255, Math.random() * 255, Math.random() * 255]
  }
}

// Link to featurelayer to enable updates in sceneView
setTimeout(() =&amp;gt; {
  labelingInfoCache.symbol = symbol
  peaks.labelingInfo = [labelingInfoCache]
})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Every time I run these codes, I can see an update in the color of the Label text (by&amp;nbsp;&lt;SPAN&gt;material.color&lt;/SPAN&gt;), but the Callout for the Label is not updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I see updates on SceneView?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 09:34:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-the-callout-of-a-featurelayer-that/m-p/1398885#M84092</guid>
      <dc:creator>Yamakaze</dc:creator>
      <dc:date>2024-03-21T09:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the Callout of a FeatureLayer that is already on the SceneView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-the-callout-of-a-featurelayer-that/m-p/1398893#M84093</link>
      <description>&lt;P&gt;If I set the&amp;nbsp;&lt;STRONG&gt;featureLayer.elevationInfo.mode&amp;nbsp;&lt;/STRONG&gt;to &lt;STRONG&gt;'on-the-ground'&lt;/STRONG&gt;, when I run the above code, I can see that the Callout on SceneView has been updated.&lt;/P&gt;&lt;P&gt;But I need to update Callout even if&amp;nbsp;&lt;STRONG&gt;featureLayer.elevationInfo.mode&lt;/STRONG&gt; is&amp;nbsp;&lt;STRONG&gt;'on-the-ground'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 09:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-the-callout-of-a-featurelayer-that/m-p/1398893#M84093</guid>
      <dc:creator>Yamakaze</dc:creator>
      <dc:date>2024-03-21T09:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the Callout of a FeatureLayer that is already on the SceneView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-the-callout-of-a-featurelayer-that/m-p/1399194#M84101</link>
      <description>&lt;P&gt;Thanks for reporting, this seems to be a bug. Sent to dev team for further investigation.&lt;/P&gt;&lt;P&gt;I did a few tests but at the moment I can't provide a good workaround.&lt;BR /&gt;Use "on-the-ground" of course if that's an option.&lt;BR /&gt;Or clone/recreate the whole layer (with new callout config in constructor), but clearly not great either depending on your use case.&lt;/P&gt;&lt;P&gt;Will keep you posted if more intel comes up.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 18:41:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-the-callout-of-a-featurelayer-that/m-p/1399194#M84101</guid>
      <dc:creator>AndreasUlmer</dc:creator>
      <dc:date>2024-03-21T18:41:33Z</dc:date>
    </item>
  </channel>
</rss>

