<?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: Map onDblClick event in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-ondblclick-event/m-p/196832#M18241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My work around i think should be to have the infoWindow display when a user double clicks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FWIW, I think this could cause problems with user expectations, as it's a "standard" feature to zoom the map in on double-click.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The problem is that if I click the measure widgit and then click the map, it not only starts measureing, but it also displayes the infoWindow.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could disable the infoWindow listener when the user clicks the measure widget, and re-enable it when the measure widget is closed. One option is to do something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var clickListener = dojo.connect(map, "onClick", myClickHandler); 
dojo.disconnect(clickListener);&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 09:50:19 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2021-12-11T09:50:19Z</dc:date>
    <item>
      <title>Map onDblClick event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-ondblclick-event/m-p/196830#M18239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working on a project where the map will give users the option click and recieve an infoWindow containg quereied Parcel data.&amp;nbsp; I also want to use the measureing widgit.&amp;nbsp; The problem is that if I click the measure widgit and then click the map, it not only starts measureing, but it also displayes the infoWindow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My work around i think should be to have the infoWindow display when a user double clicks.&amp;nbsp; So i changed my listener from 'onClick' event to&amp;nbsp; 'onDblClick' even.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function init() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; dojo.connect(map, "onDblClick", myClickHandler); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But that doesnt fire off myClickHandler fucntion, instead it simply center and zooms the map.&amp;nbsp; I have tried to disable double click and zoom:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function init() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new esri.Map("map", {infoWindow: Popup, logo: false});&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.place(Popup.domNode,map.root); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.addClass(map.infoWindow.domNode, "myTheme");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.disableDoubleClickZoom();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map, "onDblClick", myClickHandler); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the map still zooms when double clicked, and the function myClickHandler is not fired.&amp;nbsp; It works just fine if I use "onClick" instead of "onDblClick".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 19:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-ondblclick-event/m-p/196830#M18239</guid>
      <dc:creator>JeremyAdams</dc:creator>
      <dc:date>2011-06-09T19:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Map onDblClick event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-ondblclick-event/m-p/196831#M18240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ESRI has the zoom built in the the api so you need to disable it within the function that calls the map variable and the extent (usually function init() or something similar).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The disable code line is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect(map, "onLoad", function() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.disableDoubleClickZoom();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jaclyn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 20:29:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-ondblclick-event/m-p/196831#M18240</guid>
      <dc:creator>JaclynGorman</dc:creator>
      <dc:date>2011-06-09T20:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Map onDblClick event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-ondblclick-event/m-p/196832#M18241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My work around i think should be to have the infoWindow display when a user double clicks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FWIW, I think this could cause problems with user expectations, as it's a "standard" feature to zoom the map in on double-click.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The problem is that if I click the measure widgit and then click the map, it not only starts measureing, but it also displayes the infoWindow.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could disable the infoWindow listener when the user clicks the measure widget, and re-enable it when the measure widget is closed. One option is to do something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var clickListener = dojo.connect(map, "onClick", myClickHandler); 
dojo.disconnect(clickListener);&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-ondblclick-event/m-p/196832#M18241</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2021-12-11T09:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Map onDblClick event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-ondblclick-event/m-p/196833#M18242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That works great.&amp;nbsp; Thanks so much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 11:37:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-ondblclick-event/m-p/196833#M18242</guid>
      <dc:creator>JeremyAdams</dc:creator>
      <dc:date>2011-06-10T11:37:36Z</dc:date>
    </item>
  </channel>
</rss>

