<?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: Double click on layer doesn't enlarge the map in the IE10 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/double-click-on-layer-doesn-t-enlarge-the-map-in/m-p/5036#M460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After debug into the Arcgis js code . I found something useful in the source code.(By the way , Is there any debug version of Arcgis javascript code to be downloaded ? I just get them from the temporary download folder of Browser. and format the code in the &lt;/SPAN&gt;&lt;A href="http://jsbeautifier.org/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://jsbeautifier.org/&lt;/A&gt;&lt;SPAN&gt;. save to local file. etc .. It is a really hard work to be done. Strongly recommend Arcgis open source their javascript lib. Anyone agree with me ?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok . Go back to my topic. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found when loading arcgis javascript lib , it will determine what kind of browser client it is . you can see this function in the module "esri/sniff".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and I found arcgis will add a feature named "esri-poiter" in there . the code is &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;d.add("esri-pointer",navigator.pointerEnabled || navigator.msPointerEnabled);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since in the IE10 the navigator.msPointerEnabled is true. so the feature test will be true for IE10. but in the other browser is false. This will determine what features will be added to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example in the module "esri/MapNavigationManager" will test this feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is false or undefined. Then will add dbl-click event handler for the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So for the issue in my last post , The solution I can think out is removing this feature before I create map. The code looks like below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
sn.cache["esri-pointer"] = undefined;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mapDef = esriUtils.createMap(mapConfig.map.itemId, this.mapDivId, {
&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; mapOptions: {
&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slider: false,
&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nav: false,&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;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; infoWindow: custInfoWin
&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sn represent dojo/has module.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fortunately In my test (IE10: Browser mode :ie10&amp;nbsp; document mode : standards ). The double click will enlarge the map immediately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; So far I didn't found any further issues. So I guess it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I am still not sure if it is ok for this solution.&amp;nbsp; I hope someone can give some comments to it. thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 20:11:39 GMT</pubDate>
    <dc:creator>joewang</dc:creator>
    <dc:date>2021-12-10T20:11:39Z</dc:date>
    <item>
      <title>Double click on layer doesn't enlarge the map in the IE10</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/double-click-on-layer-doesn-t-enlarge-the-map-in/m-p/5035#M459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everyone, I just joined here and this is my first question here, If I did something wrong ,Please kindly correct me . thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am just a newbie of Arcgis javascript , I created a map which contains a layer . The layer has pop-up infowindow whenever I click on the layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The webmap can be viewed from &lt;/SPAN&gt;&lt;A href="https://accela.maps.arcgis.com/home/webmap/viewer.html?webmap=8e900bdba72f451cbf5141a9a6073532" rel="nofollow noopener noreferrer" target="_blank"&gt;https://accela.maps.arcgis.com/home/webmap/viewer.html?webmap=8e900bdba72f451cbf5141a9a6073532&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and Currently the map can be shown successfully in my web site except a problem . &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used below code to generate the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var mapDef = esriUtils.createMap("8e900bdba72f451cbf5141a9a6073532", "divMap");//divMap is an id of div.
mapDef.then(lang.hitch(this, function (response) {
&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; var map = response.map;});

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found If I viewed it in the browser chrome/Firefox/IE9. Double-click on the layer will zoom-in the map immediately.&amp;nbsp; But if I view it within IE10/IE11 . double-click will pop up a infowindow which contains a link "zoom to"&amp;nbsp; to make the map zoom in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is can I disable the popup infowindows and just enlarge the map immediately when double click on my layer in IE10 ? (I just want only the single click to popup property window.) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it can not be made or Arcgis doesn't support, Someone please tell me , thanks you in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any comments are appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Joe&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:11:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/double-click-on-layer-doesn-t-enlarge-the-map-in/m-p/5035#M459</guid>
      <dc:creator>joewang</dc:creator>
      <dc:date>2021-12-10T20:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Double click on layer doesn't enlarge the map in the IE10</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/double-click-on-layer-doesn-t-enlarge-the-map-in/m-p/5036#M460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After debug into the Arcgis js code . I found something useful in the source code.(By the way , Is there any debug version of Arcgis javascript code to be downloaded ? I just get them from the temporary download folder of Browser. and format the code in the &lt;/SPAN&gt;&lt;A href="http://jsbeautifier.org/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://jsbeautifier.org/&lt;/A&gt;&lt;SPAN&gt;. save to local file. etc .. It is a really hard work to be done. Strongly recommend Arcgis open source their javascript lib. Anyone agree with me ?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok . Go back to my topic. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found when loading arcgis javascript lib , it will determine what kind of browser client it is . you can see this function in the module "esri/sniff".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and I found arcgis will add a feature named "esri-poiter" in there . the code is &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;d.add("esri-pointer",navigator.pointerEnabled || navigator.msPointerEnabled);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since in the IE10 the navigator.msPointerEnabled is true. so the feature test will be true for IE10. but in the other browser is false. This will determine what features will be added to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example in the module "esri/MapNavigationManager" will test this feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is false or undefined. Then will add dbl-click event handler for the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So for the issue in my last post , The solution I can think out is removing this feature before I create map. The code looks like below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
sn.cache["esri-pointer"] = undefined;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mapDef = esriUtils.createMap(mapConfig.map.itemId, this.mapDivId, {
&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; mapOptions: {
&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slider: false,
&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nav: false,&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;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; infoWindow: custInfoWin
&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sn represent dojo/has module.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fortunately In my test (IE10: Browser mode :ie10&amp;nbsp; document mode : standards ). The double click will enlarge the map immediately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; So far I didn't found any further issues. So I guess it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I am still not sure if it is ok for this solution.&amp;nbsp; I hope someone can give some comments to it. thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:11:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/double-click-on-layer-doesn-t-enlarge-the-map-in/m-p/5036#M460</guid>
      <dc:creator>joewang</dc:creator>
      <dc:date>2021-12-10T20:11:39Z</dc:date>
    </item>
  </channel>
</rss>

