<?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: zoom not zooming to mouse location in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460875#M42608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Map is still zooming to the right ????&amp;nbsp; Dont know why&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Think I got my XY Coordinate corrected with this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var normalizedVal = webMercatorUtils.xyToLngLat(XCoord, YCoord);
alert(normalizedVal);&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Although the translated Coordinates put me in the Atlantic Ocean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JS App is returning -8036423.598 4246950.54&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Translated with webMercatorUtils i get -72.192421 and 35.6089&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should be around -77 and 37&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dont know if there is a better way to capture XY coordinates and populate input boxes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:30:37 GMT</pubDate>
    <dc:creator>jaykapalczynski</dc:creator>
    <dc:date>2021-12-11T20:30:37Z</dc:date>
    <item>
      <title>zoom not zooming to mouse location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460874#M42607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have this app...when I scroll zoom it does not zoom to where my mouse pointer is...its not bad in this jsfiddle but in my app its far worse...check the website below...and scroll / zoom in watch how it pushes to the right&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Click the MAP button to bring up map&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://jsfiddle.net/Q6ss8/6/" rel="nofollow" target="_blank"&gt;http://jsfiddle.net/Q6ss8/6/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://fwisweb1.dgif.virginia.gov/dgifmapping/2PopupMapInputTextboxCoordinatesy.html" rel="nofollow" target="_blank"&gt;https://fwisweb1.dgif.virginia.gov/dgifmapping/2PopupMapInputTextboxCoordinatesy.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2 other questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Can I convert the XY to Lat Long after I click the map to populate the text boxes with XY?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Is there a better way to do this than using identifyParams?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 19:30:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460874#M42607</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-06-20T19:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: zoom not zooming to mouse location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460875#M42608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Map is still zooming to the right ????&amp;nbsp; Dont know why&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Think I got my XY Coordinate corrected with this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var normalizedVal = webMercatorUtils.xyToLngLat(XCoord, YCoord);
alert(normalizedVal);&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Although the translated Coordinates put me in the Atlantic Ocean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JS App is returning -8036423.598 4246950.54&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Translated with webMercatorUtils i get -72.192421 and 35.6089&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should be around -77 and 37&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dont know if there is a better way to capture XY coordinates and populate input boxes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460875#M42608</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-11T20:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: zoom not zooming to mouse location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460876#M42609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Adding these lines seems to fix the Fiddle&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function DragDrop() { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //alert("IN DragDrop"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domUtils.toggle(dom.byId("divSplashScreenContainer")); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.map.resize(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.map.reposition(); &amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These should be called after the map DIV has been repositioned and resized.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 19:48:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460876#M42609</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-06-20T19:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: zoom not zooming to mouse location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460877#M42610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As for your other question, you can use &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/point-amd.html#getlatitude"&gt;getLatitude&lt;/A&gt;&lt;SPAN&gt; and getLongitude methods on a Point. See this &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/113224-how-to-get-map-center-point?p=397218#post397218"&gt;thread&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 19:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460877#M42610</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-06-20T19:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: zoom not zooming to mouse location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460878#M42611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome....thank you all very much.....very very appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 20:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460878#M42611</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-06-20T20:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: zoom not zooming to mouse location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460879#M42612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ken Buja&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that getting the center of the map?&amp;nbsp; I am trying to get the XY of a map click&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 20:07:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460879#M42612</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-06-20T20:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: zoom not zooming to mouse location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460880#M42613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's just an example of different ways to get the latitude and longitude from a point. That thread used the example of the map's center, but a point is a point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 20:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460880#M42613</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-06-20T20:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: zoom not zooming to mouse location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460881#M42614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If your question was answered, don't forget to click the check mark on the appropriate post. This helps others when searching for solutions to this question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 12:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-not-zooming-to-mouse-location/m-p/460881#M42614</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-06-23T12:25:55Z</dc:date>
    </item>
  </channel>
</rss>

