<?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 JS 4.0: use of &amp;quot;splash screen&amp;quot; causes weird panning on pop up and navigation on mobile devices in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-4-0-use-of-quot-splash-screen-quot-causes-weird/m-p/66727#M5864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello all. I've created a JS 4.0 page that includes an ArcGIS.com web map. The page will be embedded in a mobile app.&amp;nbsp; We want to include a "splash screen" to encourage users to tap the map for more information about the map features.&amp;nbsp; The splash screen is displaying correctly for 4000 ms using the setTimeout function.&amp;nbsp; But once the map loads, we get weird navigation issues when&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) somebody taps a map feature that invokes the default popup (info window) that's docked to the bottom of the screen&lt;/P&gt;&lt;P&gt;2) the user attempts to spread and pinch zoom and pan on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When #1 occurs, the map uncontrollably pans to the north.&amp;nbsp; On #2, the map often (but not always) wants to pan to the same location that #1 scrolls to.&amp;nbsp; This is happening on Chrome (only when the window is sized in mobile dimensions), but not IE.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He's the map without the splash screen (and with a message box / alert instead -- not the behavoir that we want): &lt;A href="http://cycleknox.ibikeknx.com/tmp/map.html" title="http://cycleknox.ibikeknx.com/tmp/map.html"&gt;http://cycleknox.ibikeknx.com/tmp/map.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And he's the map with the splash screen: &lt;A href="http://cycleknox.ibikeknx.com/tmp/map_with_splash.html" title="http://cycleknox.ibikeknx.com/tmp/map_with_splash.html"&gt;http://cycleknox.ibikeknx.com/tmp/map_with_splash.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These html files will likely be taken down after our event, so I've also attached them for long-term prosperity.&amp;nbsp; The ArcGIS.com web map that the html references may also be removed, so you may need to repoint the attached HTML files to a different ArcGIS.com web map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on what's causing this?&amp;nbsp; How to prevent it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2016 14:53:12 GMT</pubDate>
    <dc:creator>AZendel</dc:creator>
    <dc:date>2016-05-10T14:53:12Z</dc:date>
    <item>
      <title>JS 4.0: use of "splash screen" causes weird panning on pop up and navigation on mobile devices</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-4-0-use-of-quot-splash-screen-quot-causes-weird/m-p/66727#M5864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello all. I've created a JS 4.0 page that includes an ArcGIS.com web map. The page will be embedded in a mobile app.&amp;nbsp; We want to include a "splash screen" to encourage users to tap the map for more information about the map features.&amp;nbsp; The splash screen is displaying correctly for 4000 ms using the setTimeout function.&amp;nbsp; But once the map loads, we get weird navigation issues when&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) somebody taps a map feature that invokes the default popup (info window) that's docked to the bottom of the screen&lt;/P&gt;&lt;P&gt;2) the user attempts to spread and pinch zoom and pan on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When #1 occurs, the map uncontrollably pans to the north.&amp;nbsp; On #2, the map often (but not always) wants to pan to the same location that #1 scrolls to.&amp;nbsp; This is happening on Chrome (only when the window is sized in mobile dimensions), but not IE.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He's the map without the splash screen (and with a message box / alert instead -- not the behavoir that we want): &lt;A href="http://cycleknox.ibikeknx.com/tmp/map.html" title="http://cycleknox.ibikeknx.com/tmp/map.html"&gt;http://cycleknox.ibikeknx.com/tmp/map.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And he's the map with the splash screen: &lt;A href="http://cycleknox.ibikeknx.com/tmp/map_with_splash.html" title="http://cycleknox.ibikeknx.com/tmp/map_with_splash.html"&gt;http://cycleknox.ibikeknx.com/tmp/map_with_splash.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These html files will likely be taken down after our event, so I've also attached them for long-term prosperity.&amp;nbsp; The ArcGIS.com web map that the html references may also be removed, so you may need to repoint the attached HTML files to a different ArcGIS.com web map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on what's causing this?&amp;nbsp; How to prevent it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 14:53:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-4-0-use-of-quot-splash-screen-quot-causes-weird/m-p/66727#M5864</guid>
      <dc:creator>AZendel</dc:creator>
      <dc:date>2016-05-10T14:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: JS 4.0: use of "splash screen" causes weird panning on pop up and navigation on mobile devices</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-4-0-use-of-quot-splash-screen-quot-causes-weird/m-p/66728#M5865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure exactly what cause is, but does it help if you put the require method inside the siteTimeout, to delay the map creation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tested on my machine, and yeah, moving the require inside the setTimeout fixes the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also load the webmap, but delay the view creation until inside the setTimeout as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require([
&amp;nbsp; // modules
], function (
&amp;nbsp; // modules
) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var webmap = new WebMap({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; portalItem: { // autocasts as new PortalItem()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "fd6d257add064e30b8e5ee21282b2e5f"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; var isLegendVisible = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp; setTimeout(function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var elem = document.getElementById("splash");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elem.disabled = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elem.style.zIndex = -99;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elem.parentNode.removeChild(elem);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var view = new MapView({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: webmap,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; container: "viewDiv"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // ... other stuff
&amp;nbsp;&amp;nbsp;&amp;nbsp; }, 4000);
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-4-0-use-of-quot-splash-screen-quot-causes-weird/m-p/66728#M5865</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-10T22:34:05Z</dc:date>
    </item>
  </channel>
</rss>

