<?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: Problem panning with Firefox and Chrome in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-panning-with-firefox-and-chrome/m-p/135182#M12575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A couple of things that might be of help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) make sure to review the following help documentation to refer to the different pan and zoom options&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#intro_navigation"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#intro_navigation&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I have found that enabling and disabling toolbars such as draw and edit toolbars will enable and disable your pan and zoom functionality.&amp;nbsp; So you will need to make sure that these toolbars are enabled in the correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) sometimes what might look functionality not working between various browers is really attributed to the fact that some handle "errors" on the page better than others and in reality there is simply a portion of the code that is causing an error therefore stopping all further execution of your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without any specific code to look at, this is the most help we can offer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Mar 2013 14:44:54 GMT</pubDate>
    <dc:creator>DianaBenedict</dc:creator>
    <dc:date>2013-03-05T14:44:54Z</dc:date>
    <item>
      <title>Problem panning with Firefox and Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-panning-with-firefox-and-chrome/m-p/135181#M12574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've a problem panning the map with Firefox and Chrome. I drag the mouse using the left button and nothing happens, but it pans when I drag with the scroll button! This doesn't happen with IE. The map is integrated in a rather complex javascript application and I doesn't know where to start to find the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jean-François&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 13:09:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-panning-with-firefox-and-chrome/m-p/135181#M12574</guid>
      <dc:creator>Jean-FrancoisDucre-Robitaille</dc:creator>
      <dc:date>2013-03-05T13:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem panning with Firefox and Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-panning-with-firefox-and-chrome/m-p/135182#M12575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A couple of things that might be of help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) make sure to review the following help documentation to refer to the different pan and zoom options&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#intro_navigation"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#intro_navigation&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I have found that enabling and disabling toolbars such as draw and edit toolbars will enable and disable your pan and zoom functionality.&amp;nbsp; So you will need to make sure that these toolbars are enabled in the correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) sometimes what might look functionality not working between various browers is really attributed to the fact that some handle "errors" on the page better than others and in reality there is simply a portion of the code that is causing an error therefore stopping all further execution of your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without any specific code to look at, this is the most help we can offer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 14:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-panning-with-firefox-and-chrome/m-p/135182#M12575</guid>
      <dc:creator>DianaBenedict</dc:creator>
      <dc:date>2013-03-05T14:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem panning with Firefox and Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-panning-with-firefox-and-chrome/m-p/1265956#M80500</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I have the same problem. Can someone help me? This my code:&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&lt;BR /&gt;&amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Circle with Measure&amp;lt;/title&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;link rel="stylesheet" href="&lt;A href="https://js.arcgis.com/3.43/esri/css/esri.css" target="_blank"&gt;https://js.arcgis.com/3.43/esri/css/esri.css&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;html,&lt;BR /&gt;body,&lt;BR /&gt;#map {&lt;BR /&gt;height: 100%;&lt;BR /&gt;margin: 0;&lt;BR /&gt;padding: 0;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://js.arcgis.com/3.43/" target="_blank"&gt;https://js.arcgis.com/3.43/&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;var map;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;require(["esri/map",&lt;BR /&gt;"esri/graphic",&lt;BR /&gt;"esri/geometry/Circle",&lt;BR /&gt;"esri/geometry/Polyline",&lt;BR /&gt;"esri/symbols/SimpleMarkerSymbol",&lt;BR /&gt;"esri/symbols/SimpleFillSymbol",&lt;BR /&gt;"esri/symbols/SimpleLineSymbol",&lt;BR /&gt;"esri/symbols/TextSymbol",&lt;BR /&gt;"esri/symbols/Font",&lt;BR /&gt;"esri/Color",&lt;BR /&gt;"esri/geometry/geometryEngine",&lt;BR /&gt;"dojo/domReady!"],&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function(Map,&lt;BR /&gt;Graphic,&lt;BR /&gt;Circle,&lt;BR /&gt;Polyline,&lt;BR /&gt;SimpleMarkerSymbol,&lt;BR /&gt;SimpleFillSymbol,&lt;BR /&gt;SimpleLineSymbol,&lt;BR /&gt;TextSymbol,&lt;BR /&gt;Font,&lt;BR /&gt;Color,&lt;BR /&gt;geometryEngine) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;map = new Map("map", {&lt;BR /&gt;basemap: "topo", //For full list of pre-defined basemaps, navigate to &lt;A href="http://arcg.is/1JVo6Wd" target="_blank"&gt;http://arcg.is/1JVo6Wd&lt;/A&gt;&lt;BR /&gt;center: [-120.537, 46.592], // longitude, latitude&lt;BR /&gt;zoom: 13&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var centerPt = null;&lt;BR /&gt;var sfs = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,&lt;BR /&gt;new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT,&lt;BR /&gt;new Color([255,0,0]), 2),new Color([255,255,0,0.25])&lt;BR /&gt;);&lt;BR /&gt;var drawCircle = new Graphic(null, sfs, null, null);&lt;BR /&gt;var sls = new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([255,0,0]), 2)&lt;BR /&gt;var radiusLine = new Graphic(null, sls, null, null);&lt;BR /&gt;var font = new Font("20px", Font.STYLE_NORMAL, Font.VARIANT_NORMAL, Font.WEIGHT_BOLDER);&lt;BR /&gt;var ts = new TextSymbol("");&lt;BR /&gt;ts.setFont(font);&lt;BR /&gt;ts.setColor(new Color([255,0,0]));&lt;BR /&gt;ts.setOffset(0,20);&lt;BR /&gt;var radiusText = new Graphic(null, ts, null, null);&lt;/P&gt;&lt;P&gt;//onDragStart, record the centerPt&lt;BR /&gt;map.on("mouse-drag-start", function(evt) {&lt;BR /&gt;try{&lt;BR /&gt;map.disablePan();&lt;BR /&gt;map.disableMapNavigation();&lt;BR /&gt;console.log("drag start. Pan: " + map.isPan + ". Navigation: " + map.isMapNavigation);&lt;BR /&gt;map.graphics.add(drawCircle);&lt;BR /&gt;map.graphics.add(radiusLine);&lt;BR /&gt;map.graphics.add(radiusText);&lt;BR /&gt;centerPt = evt;&lt;BR /&gt;}catch(e){&lt;BR /&gt;console.log(e);&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;//onDrag, calculate distance between currentPoint and centerPt&lt;BR /&gt;map.on("mouse-drag", function(evt) {&lt;BR /&gt;console.log("drag. Pan: " + map.isPan);&lt;BR /&gt;var pl = new Polyline(map.spatialReference);&lt;BR /&gt;pl.addPath([centerPt.mapPoint, evt.mapPoint]);&lt;BR /&gt;var radius = geometryEngine.geodesicLength(pl, "meters");&lt;BR /&gt;var circle = new Circle({center: centerPt.mapPoint, radius: radius, geodesic: true, spatialReference: map.spatialReference});;&lt;BR /&gt;drawCircle.setGeometry(circle);&lt;BR /&gt;radiusLine.setGeometry(pl);&lt;BR /&gt;ts.setText(radius.toFixed(1) + " meters" + ". Area: " + geometryEngine.geodesicArea(circle, "square-kilometers") + "km2");&lt;BR /&gt;radiusText.setGeometry(centerPt.mapPoint);&lt;BR /&gt;//console.log("radius is:" + radius);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;map.on("mouse-drag-end", function(evt) {&lt;BR /&gt;try{&lt;BR /&gt;map.enablePan();&lt;BR /&gt;map.enableMapNavigation();&lt;BR /&gt;console.log("drag end. Pan: " + map.isPan + ". Navigation: " + map.isMapNavigation);&lt;BR /&gt;}catch(e){&lt;BR /&gt;console.log(e);&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;div id="map"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Firefox, don´t work as expected. In Chrome, OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 13:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-panning-with-firefox-and-chrome/m-p/1265956#M80500</guid>
      <dc:creator>GokuSan</dc:creator>
      <dc:date>2023-03-09T13:43:48Z</dc:date>
    </item>
  </channel>
</rss>

