<?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 How to execute a rubberBandZoom without pressing SHIFT? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-execute-a-rubberbandzoom-without-pressing/m-p/35497#M2954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've added a button to my webapp that enables me to toggle on or off the rubberBandZoom of my map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However I don't want to have the user press SHIFT first, this webapp will be for a mobile device (tablet)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 14:18:07 GMT</pubDate>
    <dc:creator>YohanBienvenue</dc:creator>
    <dc:date>2012-05-03T14:18:07Z</dc:date>
    <item>
      <title>How to execute a rubberBandZoom without pressing SHIFT?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-execute-a-rubberbandzoom-without-pressing/m-p/35497#M2954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've added a button to my webapp that enables me to toggle on or off the rubberBandZoom of my map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However I don't want to have the user press SHIFT first, this webapp will be for a mobile device (tablet)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 14:18:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-execute-a-rubberbandzoom-without-pressing/m-p/35497#M2954</guid>
      <dc:creator>YohanBienvenue</dc:creator>
      <dc:date>2012-05-03T14:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a rubberBandZoom without pressing SHIFT?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-execute-a-rubberbandzoom-without-pressing/m-p/35498#M2955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried fooling the API by capturing the MouseEvent and setting the shiftKey to true, but unfortunately this is not possible for security reasons. Some event properties (e.g. currentTarget) are protected from change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
MapPage.prototype.onMapMouseEvent = function(evt){ 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; evt.preventDefault();
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; var e = jQuery.extend(true, {}, evt);
&amp;nbsp;&amp;nbsp; e.shiftKey = true;
&amp;nbsp;&amp;nbsp; e = new MouseEvent(evt.type, e);
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; dojo.byId("mapDiv").dispatchEvent(e);
};&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'll forget about this, I think I'll implement my own zoom box.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:23:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-execute-a-rubberbandzoom-without-pressing/m-p/35498#M2955</guid>
      <dc:creator>YohanBienvenue</dc:creator>
      <dc:date>2021-12-10T21:23:16Z</dc:date>
    </item>
  </channel>
</rss>

