<?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 Locate Button and Map Projection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226187#M21090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to place a locate button widget on my map. My map is in UTM29 projection and it seems that locate button only work withgeographical coordinates. When I set an ESRI map to background map, it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a script which can convert the input coordinates to WGS84, but I am not able to find out how to pass the converted coordinates to the locate button. Is there any way how to get locate button to work with different projection (coordinate system)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2014 09:44:08 GMT</pubDate>
    <dc:creator>MartinSirkovsky</dc:creator>
    <dc:date>2014-02-07T09:44:08Z</dc:date>
    <item>
      <title>Locate Button and Map Projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226187#M21090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to place a locate button widget on my map. My map is in UTM29 projection and it seems that locate button only work withgeographical coordinates. When I set an ESRI map to background map, it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a script which can convert the input coordinates to WGS84, but I am not able to find out how to pass the converted coordinates to the locate button. Is there any way how to get locate button to work with different projection (coordinate system)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 09:44:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226187#M21090</guid>
      <dc:creator>MartinSirkovsky</dc:creator>
      <dc:date>2014-02-07T09:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Locate Button and Map Projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226188#M21091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The measurement tools only work with one coordinate system.&amp;nbsp; Here are two threads with lots of responses on the issue.&amp;nbsp; IMHO it seems kinda crazy for a variety of reasons but that is just me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/101878-Measurement-Dijit-show-wrong-distance-on-mouse-move"&gt;http://forums.arcgis.com/threads/101878-Measurement-Dijit-show-wrong-distance-on-mouse-move&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/65517-Modifications-to-the-Measurement-Widget?p=362797#post362797"&gt;http://forums.arcgis.com/threads/65517-Modifications-to-the-Measurement-Widget?p=362797#post362797&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, what you have to do is get the results - convert them to your coordinate system then modify the results pane to show the desired results.&amp;nbsp; However, my code to show the correct results is no longer working since I changed API versions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 12:05:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226188#M21091</guid>
      <dc:creator>BryanLynn</dc:creator>
      <dc:date>2014-02-07T12:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Locate Button and Map Projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226189#M21092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in this case it sounds like Martin isn't talking about the measurement widget, but rather the 'locate' widget, but the guiding principle is much the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;geolocation in html5 always returns wgs84 lat/long coordinates for user positions.&amp;nbsp; our JavaScript API includes clientside utility methods for converting between wgs84 and web mercator (because of their widespread use) so it is possible using the out of the box widget to display the user's location on a web mercator basemap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you need to convert wgs84 coordinates into another projection, you would either have to write your own clientside conversion utility or rely on an ArcGIS Server geometry service to do the heavy lifting for you.&amp;nbsp; because the locate widget does not allow you to inject coordinates that you reprojected using a custom utility or geometry service, my best suggestion is digging into the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/driskull/arcgis-dijit-locate-button-js" rel="nofollow" target="_blank"&gt;source&lt;/A&gt;&lt;SPAN&gt; of the widget yourself if you'd like to repurpose its logic.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 20:05:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226189#M21092</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-02-10T20:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Locate Button and Map Projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226190#M21093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the answer. This just confirms my conclusion. I have created a function which converts the coordinates, and hoped that I could pass them to the geolocate widget. Unfortunatelly, this is not possible. Maybe a good idea for a new feature in the future.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 06:34:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226190#M21093</guid>
      <dc:creator>MartinSirkovsky</dc:creator>
      <dc:date>2014-02-12T06:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Locate Button and Map Projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226191#M21094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it looks like there are already &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/95853-locate-button-will-not-find-location"&gt;plans&lt;/A&gt;&lt;SPAN&gt; for this to be included in a future release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/driskull/arcgis-d...Button.js#L286"&gt;https://github.com/driskull/arcgis-d...Button.js#L286&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 18:48:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226191#M21094</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-02-12T18:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Locate Button and Map Projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226192#M21095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would like to "vote" for this feature too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 22:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226192#M21095</guid>
      <dc:creator>EricPanorel</dc:creator>
      <dc:date>2014-08-29T22:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Locate Button and Map Projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226193#M21096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Seeing as this thread is six months old, what feature are you talking about?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 17:12:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/locate-button-and-map-projection/m-p/226193#M21096</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-09-02T17:12:34Z</dc:date>
    </item>
  </channel>
</rss>

