<?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: Altitude constraint on web scene in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/altitude-constraint-on-web-scene/m-p/64127#M5606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Sascha, thanks for the information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jun 2019 09:40:06 GMT</pubDate>
    <dc:creator>AxelLévy</dc:creator>
    <dc:date>2019-06-03T09:40:06Z</dc:date>
    <item>
      <title>Altitude constraint on web scene</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/altitude-constraint-on-web-scene/m-p/64125#M5604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to block the minimum altitude of a web scene (in WAB 3D) &lt;BR /&gt;I put a constraint on Sceneview in the WebSceneloader.js file and it works great for global scenes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var sceneView = new SceneView({&lt;BR /&gt; map: scene,&lt;BR /&gt; container: mapDivId,&lt;BR /&gt; constraints: { altitude: {min: 150, max: 10000000},&lt;BR /&gt; collision: {&lt;BR /&gt; enabled: false&lt;BR /&gt; },&lt;BR /&gt; tilt: {&lt;BR /&gt; max: 179.99&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work for local scenes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I found, I think the appropriate line (122) in the same file :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_handleLocalScene: function(sceneView){&lt;BR /&gt; try{&lt;BR /&gt; if(sceneView.viewingMode &amp;amp;&amp;amp; sceneView.viewingMode.toLowerCase() === 'local'){&lt;BR /&gt; lang.setObject("constraints.collision.enabled", false, sceneView);&lt;BR /&gt; lang.setObject("constraints.tilt.max", 179.99, sceneView);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The constraint on the camera works well so I added in the same way the constraint on the altitude but it doesn't work :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lang.setObject("constraints.altitude.min", 150, sceneView);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u help me ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2019 07:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/altitude-constraint-on-web-scene/m-p/64125#M5604</guid>
      <dc:creator>AxelLévy</dc:creator>
      <dc:date>2019-05-24T07:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Altitude constraint on web scene</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/altitude-constraint-on-web-scene/m-p/64126#M5605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;As you detected it is not possible to set the altitude constraints in a local-scene. We enhance the doc to cover this. As a solution use global-scene to set the altitude constraint. In the future we would support other constraints to fulfill requirements to set the minimal distance to the ground.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2019 12:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/altitude-constraint-on-web-scene/m-p/64126#M5605</guid>
      <dc:creator>SaschaBrunnerCH</dc:creator>
      <dc:date>2019-05-24T12:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Altitude constraint on web scene</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/altitude-constraint-on-web-scene/m-p/64127#M5606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Sascha, thanks for the information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 09:40:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/altitude-constraint-on-web-scene/m-p/64127#M5606</guid>
      <dc:creator>AxelLévy</dc:creator>
      <dc:date>2019-06-03T09:40:06Z</dc:date>
    </item>
  </channel>
</rss>

