<?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: Track Component - cannot set rotationEnabled in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/track-component-cannot-set-rotationenabled/m-p/1595615#M86695</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/105462"&gt;@FC_Basson&lt;/a&gt;, thanks for the heads-up. I'll open an issue to get that added at 4.33. I'm not sure why the property didn't get exposed in the component.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2025 15:28:51 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2025-03-14T15:28:51Z</dc:date>
    <item>
      <title>Track Component - cannot set rotationEnabled</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/track-component-cannot-set-rotationenabled/m-p/1595517#M86691</link>
      <description>&lt;P&gt;With the 4.32 release of the Javascript SDK, the Track widget has become deprecated and the &lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-track/" target="_self"&gt;Track component&lt;/A&gt; is preferred.&amp;nbsp; With the old widget you could set the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#rotationEnabled" target="_self"&gt;rotationEnabled property&lt;/A&gt;, but there is no&amp;nbsp; similar option with the web component.&amp;nbsp; &amp;nbsp;Is there any way to control the view rotation with the new web component?&amp;nbsp; The &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track-TrackViewModel.html" target="_self"&gt;TrackViewModel&lt;/A&gt; also lacks a property to set the rotation option.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 08:41:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/track-component-cannot-set-rotationenabled/m-p/1595517#M86691</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2025-03-14T08:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Track Component - cannot set rotationEnabled</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/track-component-cannot-set-rotationenabled/m-p/1595615#M86695</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/105462"&gt;@FC_Basson&lt;/a&gt;, thanks for the heads-up. I'll open an issue to get that added at 4.33. I'm not sure why the property didn't get exposed in the component.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 15:28:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/track-component-cannot-set-rotationenabled/m-p/1595615#M86695</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2025-03-14T15:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Track Component - cannot set rotationEnabled</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/track-component-cannot-set-rotationenabled/m-p/1595658#M86697</link>
      <description>&lt;P&gt;You can do a workaround by getting to the viewModel or by using the override functionality.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const arcgisTrack = document.querySelector("arcgis-track");
arcgisTrack.addEventListener("arcgisReady", (event) =&amp;gt; {
  // 1. hacky way to disable rotation
  arcgisTrack._store.viewModel.rotationEnabled = false;
  
  // 2. or you can override the goTo function
  arcgisTrack.goToOverride = function(view, goToParams) {
    // 2.1 set any rotation
    goToParams.target.rotation = 80;
    
    // 2.2 or delete the parameter to keep current rotation
    // setting rotation to null will reset to 0
    delete goToParams.target.rotation;
    
    return view.goTo(goToParams.target, goToParams.options);
  };
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 16:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/track-component-cannot-set-rotationenabled/m-p/1595658#M86697</guid>
      <dc:creator>Edvinas_S</dc:creator>
      <dc:date>2025-03-14T16:48:25Z</dc:date>
    </item>
  </channel>
</rss>

