<?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: Need help removing highlight from 3D scene layer JavaScript API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-removing-highlight-from-3d-scene-layer/m-p/538301#M50172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the pointer-move listener on line 65, those functions/callbacks are where your highlight is applied.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Mar 2019 20:28:31 GMT</pubDate>
    <dc:creator>BenRomlein</dc:creator>
    <dc:date>2019-03-26T20:28:31Z</dc:date>
    <item>
      <title>Need help removing highlight from 3D scene layer JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-removing-highlight-from-3d-scene-layer/m-p/538300#M50171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is my code that I have been tinkering with, however, I can't seem to figure how to remove highlighting from my 3D buildings. Not sure how to go about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta charset="utf-8"&amp;gt;&lt;BR /&gt; &amp;lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Intro to SceneLayer - 4.10&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;style&amp;gt;&lt;BR /&gt; html,&lt;BR /&gt; body,&lt;BR /&gt; #viewDiv {&lt;BR /&gt; padding: 0;&lt;BR /&gt; margin: 0;&lt;BR /&gt; height: 100%;&lt;BR /&gt; width: 100%;&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.10/esri/css/main.css"&amp;gt;&lt;BR /&gt; &amp;lt;script src="https://js.arcgis.com/4.10/"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt; require([&lt;BR /&gt; "esri/Map",&lt;BR /&gt; "esri/views/SceneView",&lt;BR /&gt; "esri/layers/SceneLayer"&lt;BR /&gt; ], function(Map, SceneView, SceneLayer) {&lt;/P&gt;&lt;P&gt;// Create Map&lt;BR /&gt; var map = new Map({&lt;BR /&gt; basemap: "dark-gray",&lt;BR /&gt; ground: "world-elevation"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;// Create the SceneView&lt;BR /&gt; var view = new SceneView({&lt;BR /&gt; container: "viewDiv",&lt;BR /&gt; map: map,&lt;BR /&gt; camera: {&lt;BR /&gt; position: [-80.196073,25.792461, 707],&lt;BR /&gt; tilt: 81,&lt;BR /&gt; heading: 50&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;// Create SceneLayer and add to the map&lt;BR /&gt; var sceneLayer = new SceneLayer({&lt;BR /&gt; portalItem: {&lt;BR /&gt; id: "b162d491955744ff9e9de7913bb49693 "&lt;BR /&gt; },&lt;BR /&gt; popupEnabled: false&lt;BR /&gt; });&lt;BR /&gt; map.add(sceneLayer);&lt;/P&gt;&lt;P&gt;// Create MeshSymbol3D for symbolizing SceneLayer&lt;BR /&gt; var symbol = {&lt;BR /&gt; type: "mesh-3d", // autocasts as new MeshSymbol3D()&lt;BR /&gt; symbolLayers: [{&lt;BR /&gt; type: "fill", // autocasts as new FillSymbol3DLayer()&lt;BR /&gt; // If the value of material is not assigned, the default color will be grey&lt;BR /&gt; material: {&lt;BR /&gt; color: [244, 247, 134]&lt;BR /&gt; }&lt;BR /&gt; }]&lt;BR /&gt; };&lt;BR /&gt; view.on("pointer-move", function(event){&lt;BR /&gt; view.hitTest(event).then(function(response){&lt;BR /&gt; let highlight;&lt;BR /&gt; if (response.results[0]) {&lt;BR /&gt; var graphic = response.results[0].graphic;&lt;BR /&gt; view.whenLayerView(graphic.layer).then(function(layerView){&lt;BR /&gt; highlight = layerView.highlight(graphic);&lt;BR /&gt; })&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; })&lt;BR /&gt; });&lt;BR /&gt; // Add the renderer to sceneLayer&lt;BR /&gt; sceneLayer.renderer = {&lt;BR /&gt; type: "simple", // autocasts as new SimpleRenderer()&lt;BR /&gt; symbol: symbol&lt;BR /&gt; };&lt;BR /&gt; });&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&lt;BR /&gt; &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 12:36:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-removing-highlight-from-3d-scene-layer/m-p/538300#M50171</guid>
      <dc:creator>JeremySingh1</dc:creator>
      <dc:date>2019-03-25T12:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help removing highlight from 3D scene layer JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-removing-highlight-from-3d-scene-layer/m-p/538301#M50172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the pointer-move listener on line 65, those functions/callbacks are where your highlight is applied.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 20:28:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-removing-highlight-from-3d-scene-layer/m-p/538301#M50172</guid>
      <dc:creator>BenRomlein</dc:creator>
      <dc:date>2019-03-26T20:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help removing highlight from 3D scene layer JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-removing-highlight-from-3d-scene-layer/m-p/538302#M50173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/328577"&gt;Jeremy Singh&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't get your code to work as its throwing error for invalid Portal ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However what I see missing is for you to add:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if (highlight) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; highlight.remove();&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That should do the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 10:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-removing-highlight-from-3d-scene-layer/m-p/538302#M50173</guid>
      <dc:creator>GeorgeAbraham</dc:creator>
      <dc:date>2020-06-11T10:39:17Z</dc:date>
    </item>
  </channel>
</rss>

