<?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: 4.30 zoom and home widgets not working with embedded map. Click event different compare to static map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-zoom-and-home-widgets-not-working-with/m-p/1533236#M85556</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for getting back to me so quickly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I forgot to mention that I'm loading the 4.30 SDK by CDN so I am loading whatever zone.js that CDN loads for me.&lt;/P&gt;&lt;P&gt;I not building the map as an Angular component. I am only using Angular to load the ArcGIS JS and CSS with&lt;STRONG&gt;&amp;nbsp;createElement('link'&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; and&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;createElement&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'script'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; after a page is created.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So Angular is probably interfering with the widget. I'll look into it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One other thing of note. I found out that this issue only happened 4.29 and later. What is the main difference between between 4.29 and the older version? How are older versions not affected by the same Angular bug?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2024 13:44:02 GMT</pubDate>
    <dc:creator>AllenHuang</dc:creator>
    <dc:date>2024-08-30T13:44:02Z</dc:date>
    <item>
      <title>4.30 zoom and home widgets not working with embedded map. Click event different compare to static map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-zoom-and-home-widgets-not-working-with/m-p/1529686#M85539</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I recently started using ArcGIS JS SDK 4.30 and I notice that the Zoom and Home stopped working. My map is embedded into Drupal by loading the JS and CSS URL with javascript and generate a map view on the fly after both JS and CSS load events are confirmed.&lt;/P&gt;&lt;P&gt;When the map is a stand-alone application, there are no problems with the Zoom and Home widgets.&lt;/P&gt;&lt;P&gt;I attempted to trace the click event after the widget are generated on both the stand-alone and Drupal maps. I looked at the Zoom-In and Zoom-Out code block&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-button class="esri-widget--button" title="Zoom in" alignment="center" appearance="solid" kind="neutral" icon-start="plus" scale="m" type="button" width="auto"&amp;gt;&amp;lt;/calcite-button&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I found that the click event I get from Chrome Dev console &lt;STRONG&gt;getEventListeners($0)&lt;/STRONG&gt; are different&lt;/P&gt;&lt;P&gt;Stand-alone map where Zoom and Home are working&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllenHuang_0-1724958211947.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113886i05F3595B9727945B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AllenHuang_0-1724958211947.png" alt="AllenHuang_0-1724958211947.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the on the fly map where the zoom and home widget are not working&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllenHuang_1-1724958264538.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113887iFE5E2CDF030BC141/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AllenHuang_1-1724958264538.png" alt="AllenHuang_1-1724958264538.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you look at the &lt;STRONG&gt;FunctionLocation&lt;/STRONG&gt;&amp;nbsp;object, the stand-alone map is executing line&amp;nbsp;&lt;STRONG&gt;4.30/2691&lt;/STRONG&gt; but the on the fly map is executing&amp;nbsp;&lt;STRONG&gt;zone.js:1724&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone explain to me why this happening and maybe give me some pointers on how I can get around it?&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 19:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-zoom-and-home-widgets-not-working-with/m-p/1529686#M85539</guid>
      <dc:creator>AllenHuang</dc:creator>
      <dc:date>2024-08-29T19:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: 4.30 zoom and home widgets not working with embedded map. Click event different compare to static map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-zoom-and-home-widgets-not-working-with/m-p/1529830#M85541</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/186502"&gt;@AllenHuang&lt;/a&gt;, This might be related to a known Angular bug that affected the SDK's widget buttons. Make sure you are running zone.js 0.14.5 or greater. For more info:&amp;nbsp;&lt;A href="https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-angular-cli#known-issues" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-angular-cli#known-issues&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 21:16:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-zoom-and-home-widgets-not-working-with/m-p/1529830#M85541</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2024-08-29T21:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: 4.30 zoom and home widgets not working with embedded map. Click event different compare to static map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-zoom-and-home-widgets-not-working-with/m-p/1533236#M85556</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for getting back to me so quickly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I forgot to mention that I'm loading the 4.30 SDK by CDN so I am loading whatever zone.js that CDN loads for me.&lt;/P&gt;&lt;P&gt;I not building the map as an Angular component. I am only using Angular to load the ArcGIS JS and CSS with&lt;STRONG&gt;&amp;nbsp;createElement('link'&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; and&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;createElement&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'script'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; after a page is created.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So Angular is probably interfering with the widget. I'll look into it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One other thing of note. I found out that this issue only happened 4.29 and later. What is the main difference between between 4.29 and the older version? How are older versions not affected by the same Angular bug?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 13:44:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-zoom-and-home-widgets-not-working-with/m-p/1533236#M85556</guid>
      <dc:creator>AllenHuang</dc:creator>
      <dc:date>2024-08-30T13:44:02Z</dc:date>
    </item>
  </channel>
</rss>

