<?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: Possible Bug: In JS API 3.7, Mobile Popup not displayed at correct position in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742418#M68712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I ran a quick test using the mobile popup sample and it worked for me. Tested on an iphone with ios7. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/widget_mobilepopup.html"&gt;https://developers.arcgis.com/en/javascript/jssamples/widget_mobilepopup.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Oct 2013 14:44:55 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2013-10-04T14:44:55Z</dc:date>
    <item>
      <title>Possible Bug: In JS API 3.7, Mobile Popup not displayed at correct position</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742417#M68711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;Mobile Popup is not taking the correct click position in API 3.7, while the same is working fine in 3.6. Using "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.7/" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.7/&lt;/A&gt;&lt;SPAN&gt;",Popup always appear at top-left corner in mobile (same works fine if we use "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.6/" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.6/&lt;/A&gt;&lt;SPAN&gt;").&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am testing this in iPhone 5 iOS 6.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28048[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone seen this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 14:39:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742417#M68711</guid>
      <dc:creator>RohitKumar</dc:creator>
      <dc:date>2013-10-04T14:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Bug: In JS API 3.7, Mobile Popup not displayed at correct position</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742418#M68712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I ran a quick test using the mobile popup sample and it worked for me. Tested on an iphone with ios7. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/widget_mobilepopup.html"&gt;https://developers.arcgis.com/en/javascript/jssamples/widget_mobilepopup.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 14:44:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742418#M68712</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2013-10-04T14:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Bug: In JS API 3.7, Mobile Popup not displayed at correct position</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742419#M68713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I downloaded the sample &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/EN/webapi/javascript/arcgis/jssamples/widget_mobilepopup.html"&gt;http://help.arcgis.com/EN/webapi/javascript/arcgis/jssamples/widget_mobilepopup.html&lt;/A&gt;&lt;SPAN&gt; and added dojox/mobile in the require array. It is working fine in the browser but in mobile, popup position is not correct. And when i change the JS API from 3.7 to 3.6, its working fine.[ATTACH=CONFIG]28332[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All suggestions are welcome.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 10:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742419#M68713</guid>
      <dc:creator>RohitKumar</dc:creator>
      <dc:date>2013-10-15T10:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Bug: In JS API 3.7, Mobile Popup not displayed at correct position</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742420#M68714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I am experiencing the same thing with the onClick event in 3.7.&amp;nbsp; It works great in a browser, or a browser emulating a mobile device.&amp;nbsp; Using an actual phone yields different results.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a browser, the onClick event in the code below yields one console log and one alert per click in a browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On a phone you get three alerts.&amp;nbsp; The first alert always returns "NaN, NaN" for the mapPoint and "undefined, undefined" for the evt.x and y.&amp;nbsp; The subsequent two alerts on the phone give the correct mapPoint and evt coordinates.&amp;nbsp; So each onClick fires three events, the first of which doesn't return coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is how to see this issue on an iPhone:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script src="http://js.arcgis.com/3.7/"&amp;gt;&amp;lt;/script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var map;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; require(["esri/map","dojox/mobile","dojo/domReady!"],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function(Map, dojoxMobile){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new Map("map", {basemap: "topo", center: [-59.48, 44.066], zoom: 4});

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.on("click",function(evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("mapPoint: " + evt.mapPoint.x + ", " + evt.mapPoint.y);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("evt: " + evt.x + ", " + evt.y);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("mapPoint: " + evt.mapPoint.x + ", " + evt.mapPoint.y + "\nevt: " + evt.y + ", " + evt.x);
&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;&amp;nbsp; &amp;lt;/script&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So why the three events?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:35:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742420#M68714</guid>
      <dc:creator>RobSpeer</dc:creator>
      <dc:date>2021-12-12T07:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Bug: In JS API 3.7, Mobile Popup not displayed at correct position</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742421#M68715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See the post from Derek in this thread for a solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/94963-Javascript-API-map-3.7-has-no-coordinates-when-handling-map-click"&gt;http://forums.arcgis.com/threads/94963-Javascript-API-map-3.7-has-no-coordinates-when-handling-map-click&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 19:30:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742421#M68715</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2013-10-22T19:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Bug: In JS API 3.7, Mobile Popup not displayed at correct position</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742422#M68716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome.&amp;nbsp; Like Derek said in that post, this did the trick:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;document.dojoClick = false;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after dojox/mobile modules are loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick response!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 19:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/possible-bug-in-js-api-3-7-mobile-popup-not/m-p/742422#M68716</guid>
      <dc:creator>RobSpeer</dc:creator>
      <dc:date>2013-10-22T19:55:22Z</dc:date>
    </item>
  </channel>
</rss>

