<?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 use a field value for StreamLayer.elevationInfo offset with SceneView in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-a-field-value-for-streamlayer/m-p/410534#M37800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I also learned that a stream service that has z-values in its geometries will display in 3D with no extra code needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2015 20:59:44 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2015-07-31T20:59:44Z</dc:date>
    <item>
      <title>How to use a field value for StreamLayer.elevationInfo offset with SceneView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-a-field-value-for-streamlayer/m-p/410532#M37798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;A href="https://developers.arcgis.com/javascript/beta/api-reference/esri-layers-StreamLayer.html" target="_blank" rel="nofollow noopener noreferrer"&gt;StreamLayer&lt;/A&gt;&lt;/SPAN&gt; has a property called &lt;SPAN style="font-family: 'courier new', courier;"&gt;elevationInfo&lt;/SPAN&gt;, which itself has a property called &lt;SPAN style="font-family: 'courier new', courier;"&gt;offset&lt;/SPAN&gt;. This is for setting the elevation of &lt;SPAN style="font-family: 'courier new', courier;"&gt;StreamLayer&lt;/SPAN&gt; points when used with a 3D &lt;SPAN style="font-family: 'courier new', courier;"&gt;SceneView&lt;/SPAN&gt;. The type for &lt;SPAN style="font-family: 'courier new', courier;"&gt;offset&lt;/SPAN&gt; is &lt;SPAN style="font-family: 'courier new', courier;"&gt;Number&lt;/SPAN&gt;. Rather than use an arbitrary number, like &lt;SPAN style="font-family: 'courier new', courier;"&gt;42&lt;/SPAN&gt;, I want to use a field in the stream service, like &lt;SPAN style="font-family: 'courier new', courier;"&gt;Altitude&lt;/SPAN&gt;, so that each point is vertically offset according to its altitude value. Is that possible? If not, will it be possible in a future release?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried a few different ways of setting the offset, but anything but an actual number value causes the &lt;SPAN style="font-family: 'courier new', courier;"&gt;StreamLayer&lt;/SPAN&gt; not to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is in Dropbox: &lt;A href="https://dl.dropboxusercontent.com/s/r9yj13vicq1ihvd/test3d.html" title="https://dl.dropboxusercontent.com/s/r9yj13vicq1ihvd/test3d.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Simple 3D Map&lt;/A&gt; . View the source of that page to see my complete code. Here's the relevant portion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; streamLayer = new StreamLayer(
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https://geoeventsample3.esri.com:6443/arcgis/rest/services/SeattleBus/StreamServer" target="_blank"&gt;https://geoeventsample3.esri.com:6443/arcgis/rest/services/SeattleBus/StreamServer&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; purgeOptions: { displayCount: 5000 },
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; socketDirection: "subscribe"
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; );
&amp;nbsp; streamLayer.elevationInfo = {
&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: "absoluteHeight",
&amp;nbsp;&amp;nbsp;&amp;nbsp; offset: 500 //This works
&amp;nbsp;&amp;nbsp;&amp;nbsp; //offset: "500" //This causes the StreamLayer not to display
&amp;nbsp;&amp;nbsp;&amp;nbsp; //offset: "Altitude" //This causes the StreamLayer not to display
&amp;nbsp;&amp;nbsp;&amp;nbsp; //offset: "${Altitude}" //This causes the StreamLayer not to display
&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:38:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-a-field-value-for-streamlayer/m-p/410532#M37798</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T18:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a field value for StreamLayer.elevationInfo offset with SceneView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-a-field-value-for-streamlayer/m-p/410533#M37799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, this is not supported at the moment. This is a concept we'll be discussing though and will let you know about future plans.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 22:19:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-a-field-value-for-streamlayer/m-p/410533#M37799</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2015-07-29T22:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a field value for StreamLayer.elevationInfo offset with SceneView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-a-field-value-for-streamlayer/m-p/410534#M37800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I also learned that a stream service that has z-values in its geometries will display in 3D with no extra code needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 20:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-a-field-value-for-streamlayer/m-p/410534#M37800</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-07-31T20:59:44Z</dc:date>
    </item>
  </channel>
</rss>

