<?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 to wrong point in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329798#M30512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You don't have to change how your users enter the lat/long information. Just have your users enter the lat/long as DMS and then before creating a JS API location point, convert the DMS to decimal degrees using a method such as &lt;/SPAN&gt;&lt;A href="http://uihacker.blogspot.com/2011/07/javascript-formatting-latitudelongitude.html"&gt;this&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Whoops. I now see that you say that your users can't offer this level of precision. That's going to be a problem because it's that precision that provides the true (or "better") accuracy of the point's location.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2014 21:41:58 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2014-01-24T21:41:58Z</dc:date>
    <item>
      <title>Zoom to wrong point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329795#M30509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a form for users to enter latitude/longtitude and when sumitted, the map would centerAndZoom to the point, but the result is not what I thought would be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here're steps I take:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a point with lon/lat which, in turn, is converted to a point of webmercator using the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;point = webMercatorUtils.geographicToWebMercator(point) before setting it to a query.geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Somehow, the location of point is calcualted way off.&amp;nbsp; Then I tried to create an extent around the point of webmercator, and it didn't work either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 19:17:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329795#M30509</guid>
      <dc:creator>fuliaoli</dc:creator>
      <dc:date>2014-01-24T19:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to wrong point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329796#M30510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi fuliao li,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you give an example of the input lat/long values?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And the values of the webmercator point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And the calculated extent?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 20:54:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329796#M30510</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2014-01-24T20:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to wrong point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329797#M30511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for quick response. It behaves so strange. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1)if input is&amp;nbsp; 46.24850307325321 -93.98920959565058 (lat/lon)(x:-10462830.952249908 y: 5820261.834192247), I can find the point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2)if input is 46 14 55&amp;nbsp; -93 59 21(degree, minute, second lat/lon) after conversion (x:-10462826.173417277 y:5820279.2256252095), not found, but if I add/minus 20 to the point in webmercator to create an extent, it is found. Adding less than 20, cannot find. I thought, even adding plus/minus 1 would cover the point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3)Requiring users to put in exact decimal is not practical, I'd like to take, say 46 -93 (lat/lon) and zoom to the calculated point with certain level. However, it zooms far off the intended point, quite a way in the east of it. So the query I use to show the area fails to capture the point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 21:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329797#M30511</guid>
      <dc:creator>fuliaoli</dc:creator>
      <dc:date>2014-01-24T21:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to wrong point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329798#M30512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You don't have to change how your users enter the lat/long information. Just have your users enter the lat/long as DMS and then before creating a JS API location point, convert the DMS to decimal degrees using a method such as &lt;/SPAN&gt;&lt;A href="http://uihacker.blogspot.com/2011/07/javascript-formatting-latitudelongitude.html"&gt;this&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Whoops. I now see that you say that your users can't offer this level of precision. That's going to be a problem because it's that precision that provides the true (or "better") accuracy of the point's location.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 21:41:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329798#M30512</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2014-01-24T21:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to wrong point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329799#M30513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You don't have to change how your users enter the lat/long information. Just have your users enter the lat/long as DMS and then before creating a JS API location point, convert the DMS to decimal degrees using a method such as &lt;A href="http://uihacker.blogspot.com/2011/07/javascript-formatting-latitudelongitude.html"&gt;this&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;EDIT: Whoops. I now see that you say that your users can't offer this level of precision. That's going to be a problem because it's that precision that provides the true (or "better") accuracy of the point's location.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. My users want to enter decimal or degree at their choice. Of course, the simplest they would enter, say, 46, 93 I treat it as decimal. As for dms, I did this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lat = parseFloat(latlon[0]) + parseFloat(latlon[1])/60.0 + parseFloat(latlon[2])/3600.0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; lon = -(parseFloat(latlon[3]) + parseFloat(latlon[4])/60.0 + parseFloat(latlon[5])/3600.0) ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new in GIS field. Not sure what's going on.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 21:51:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329799#M30513</guid>
      <dc:creator>fuliaoli</dc:creator>
      <dc:date>2014-01-24T21:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to wrong point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329800#M30514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could anyone shed some light on this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;li&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 16:22:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-wrong-point/m-p/329800#M30514</guid>
      <dc:creator>fuliaoli</dc:creator>
      <dc:date>2014-01-28T16:22:37Z</dc:date>
    </item>
  </channel>
</rss>

