<?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 Please help: Zoom to Lat/Long not working in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-zoom-to-lat-long-not-working/m-p/334818#M30910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am developing a web application for managing collisions.&amp;nbsp; Users will be able to enter new collision data.&amp;nbsp; Collision data often comes with the "lats and longs" of where the incident occurred; therefore I would like to add a zoom to lat and long "Submit" button to the application.&amp;nbsp; The problem is that clicking the "Submit" button zooms out not in like it should.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to Javascript API development and would sincerely appreciate help in getting this to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2012 18:40:23 GMT</pubDate>
    <dc:creator>DorotheaKnigge</dc:creator>
    <dc:date>2012-07-02T18:40:23Z</dc:date>
    <item>
      <title>Please help: Zoom to Lat/Long not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-zoom-to-lat-long-not-working/m-p/334818#M30910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am developing a web application for managing collisions.&amp;nbsp; Users will be able to enter new collision data.&amp;nbsp; Collision data often comes with the "lats and longs" of where the incident occurred; therefore I would like to add a zoom to lat and long "Submit" button to the application.&amp;nbsp; The problem is that clicking the "Submit" button zooms out not in like it should.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to Javascript API development and would sincerely appreciate help in getting this to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 18:40:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-zoom-to-lat-long-not-working/m-p/334818#M30910</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-07-02T18:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Please help: Zoom to Lat/Long not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-zoom-to-lat-long-not-working/m-p/334819#M30911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First, the submit function needs to be changed as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function submit()&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; Lat = parseFloat(document.getElementById("inputLat").value); &amp;nbsp;&amp;nbsp;&amp;nbsp; Lng = parseFloat(document.getElementById("inputLng").value);&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var pt = new esri.geometry.Point(Lng,Lat); &amp;nbsp;&amp;nbsp;&amp;nbsp; map.centerAndZoom(pt, .5);&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a NIM bug report for this issue. [NIM079613 The Map.centerAndZoom(mapPoint, levelOrFactor) function falsely zooms out on a Dynamic MapServiceLayer with version 2.6, 2.7, and 2.8; but the same code works well with version 2.5 and before.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://support.esri.com/en/bugs/nimbus/role/beta10_1/TklNMDc5NjEz" rel="nofollow" target="_blank"&gt;http://support.esri.com/en/bugs/nimbus/role/beta10_1/TklNMDc5NjEz&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you switch to JS API version 2.5, it works fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 21:29:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-zoom-to-lat-long-not-working/m-p/334819#M30911</guid>
      <dc:creator>FengZhang2</dc:creator>
      <dc:date>2012-07-02T21:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Please help: Zoom to Lat/Long not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-zoom-to-lat-long-not-working/m-p/334820#M30912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so very much Feng Zhang, you have made my day!&amp;nbsp; It is working like it should.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(How do I award the points you deserve?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 12:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/please-help-zoom-to-lat-long-not-working/m-p/334820#M30912</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-07-03T12:53:17Z</dc:date>
    </item>
  </channel>
</rss>

