<?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: disable pinch to zoom in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-pinch-to-zoom/m-p/206292#M19150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. &amp;nbsp;This would work except I need the map to be able to rotate. &amp;nbsp;In fact, I've applied a rotation of 340 by default. &amp;nbsp;I wouldn't mind turning rotation off for users but this constraint is overriding the 340 rotation setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I did notice a constraint (snapToZoom) which restricts scales to specific LOD which is actually what I'm looking for. &amp;nbsp;Unfortunately, it doesn't seem to be honored on mobile. &amp;nbsp;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Aug 2017 14:40:36 GMT</pubDate>
    <dc:creator>deleted-user-OlpHy1NoMNug</dc:creator>
    <dc:date>2017-08-16T14:40:36Z</dc:date>
    <item>
      <title>disable pinch to zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-pinch-to-zoom/m-p/206290#M19148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On JS 4.xx is it possible to disable the pinch to zoom but keep the panning? &amp;nbsp;Sample would imply no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="367114" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/367114_pastedImage_1.png" style="width: 620px; height: 265px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/view-disable-zoom/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/view-disable-zoom/index.html"&gt;Disable all zooming on the view | ArcGIS API for JavaScript 4.4&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2017 20:18:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-pinch-to-zoom/m-p/206290#M19148</guid>
      <dc:creator>deleted-user-OlpHy1NoMNug</dc:creator>
      <dc:date>2017-08-15T20:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: disable pinch to zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-pinch-to-zoom/m-p/206291#M19149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't tried this, but based on this thread -&amp;nbsp;&lt;A href="https://community.esri.com/thread/191170"&gt;Pinch to Zoom - Disable rotation on mobile device 4.3&lt;/A&gt;&amp;nbsp; - it seems like you may want to check out adding a constaint on &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints"&gt;rotationEnabled&lt;/A&gt;. Setting this constraint (rotationEnabled: false) appears to have the side-effect of disabling pinch... which is what you're looking to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if this does work, I probably wouldn't rely on it with future versions as it seems like the behavior may change once v4 becomes mature. It seems weird that this would disable pinch (as stated in the thread), but it also seems weird that the API couples pinch zoom and pan with the drag event. It really seems like there needs to be a separate event for multiple input gestures, or something like that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2017 20:40:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-pinch-to-zoom/m-p/206291#M19149</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2017-08-15T20:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: disable pinch to zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-pinch-to-zoom/m-p/206292#M19150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. &amp;nbsp;This would work except I need the map to be able to rotate. &amp;nbsp;In fact, I've applied a rotation of 340 by default. &amp;nbsp;I wouldn't mind turning rotation off for users but this constraint is overriding the 340 rotation setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I did notice a constraint (snapToZoom) which restricts scales to specific LOD which is actually what I'm looking for. &amp;nbsp;Unfortunately, it doesn't seem to be honored on mobile. &amp;nbsp;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 14:40:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-pinch-to-zoom/m-p/206292#M19150</guid>
      <dc:creator>deleted-user-OlpHy1NoMNug</dc:creator>
      <dc:date>2017-08-16T14:40:36Z</dc:date>
    </item>
  </channel>
</rss>

