<?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: Measurement  Location Customization in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137416#M12785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Nita,&lt;BR /&gt;&lt;BR /&gt;When we say a location is Longitude: -85.74, Latitude: 38.25, which means it's a point offset from Longitude: 0, Latitude: 0 on a sphere/ellipsoid (earth) surface under geographic coordinate system. If you want to use meters as unit, that means you want to represent the location in a 2D projected coordiante system from an origin point. Without projection information, it doesn't have a meaningful location x, y values.&lt;BR /&gt;What I'm trying to say is you would like to show a meaningful location here. &lt;BR /&gt;Back to your question, you can use the following code snippet to show the x, y values under current projection of your map.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(measurement, "onMeasureEnd", function(toolName, geometry){
&amp;nbsp; if (toolName === "location") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; measurement.resultValue.domNode.innerHTML = "x: "+ geometry.x + "&amp;lt;br/&amp;gt;y: " + geometry.y;
&amp;nbsp; }
});
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Jian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tested this code but its not working. I need to add esri.Meters in esri.dijit.measurement Location units. After adding this, I want to show measurement location by default in esri.Meters like below code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;measurement = new esri.dijit.Measurement({ map: map, lineSymbol: sls,defaultLengthUnit: esri.Units.METERS, defaultAreaUnit: esri.Units.SQUARE_METERS; defaultLengthUnit: esri.Units.METERS}, dojo.byId('measurementDiv'));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but I am not having "esri.Units.METERS" in dropdownlist of units for location. So, I can I do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nita&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 07:38:01 GMT</pubDate>
    <dc:creator>nitakumari</dc:creator>
    <dc:date>2021-12-11T07:38:01Z</dc:date>
    <item>
      <title>Measurement  Location Customization</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137411#M12780</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;SPAN&gt;Motive: Add esri.Meters unit to existing Location&amp;nbsp; units in esri.dijit.measurement dojo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on esri.dijit.measurement dojo in Arcgis server. In&amp;nbsp; this, the available units for Location&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; are "degrees and DMS". I want to add Meters unit in this. How can I do that. I am getting stuck in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this from yesterday. Anybody Please help me out, its very urgent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 04:02:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137411#M12780</guid>
      <dc:creator>nitakumari</dc:creator>
      <dc:date>2013-02-14T04:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement  Location Customization</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137412#M12781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not so sure how you can use meters to represent location. It means it offsets from an origin point?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 04:25:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137412#M12781</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2013-02-14T04:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement  Location Customization</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137413#M12782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not so sure how you can use meters to represent location. It means it offsets from an origin point?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Jian for your quick reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually when I click a point on the map, I can get location in terms of degrees and degreeminutesseconds notation but I want to get the location in terms of x,y coordinates in meters like X : 769999.677, Y : 2682267.451.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also attaching the snapshot measurement.png. In this the default units present are shown. I want to include meters in this dropdown list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Again thanks in advance .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 06:59:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137413#M12782</guid>
      <dc:creator>nitakumari</dc:creator>
      <dc:date>2013-02-14T06:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement  Location Customization</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137414#M12783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Jian, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here it is showing you are online now, If you have seen my reply, Please answer. If you have any doubt regarding the measurement post, Please ask me. I will reply quickly. I am also online.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 07:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137414#M12783</guid>
      <dc:creator>nitakumari</dc:creator>
      <dc:date>2013-02-14T07:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement  Location Customization</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137415#M12784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nita,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we say a location is Longitude: -85.74, Latitude: 38.25, which means it's a point offset from Longitude: 0, Latitude: 0 on a sphere/ellipsoid (earth) surface under geographic coordinate system. If you want to use meters as unit, that means you want to represent the location in a 2D projected coordiante system from an origin point. Without projection information, it doesn't have a meaningful location x, y values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm trying to say is you would like to show a meaningful location here. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Back to your question, you can use the following code snippet to show the x, y values under current projection of your map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(measurement, "onMeasureEnd", function(toolName, geometry){
&amp;nbsp; if (toolName === "location") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; measurement.resultValue.domNode.innerHTML = "x: "+ geometry.x + "&amp;lt;br/&amp;gt;y: " + geometry.y;
&amp;nbsp; }
});
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137415#M12784</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2021-12-11T07:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement  Location Customization</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137416#M12785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Nita,&lt;BR /&gt;&lt;BR /&gt;When we say a location is Longitude: -85.74, Latitude: 38.25, which means it's a point offset from Longitude: 0, Latitude: 0 on a sphere/ellipsoid (earth) surface under geographic coordinate system. If you want to use meters as unit, that means you want to represent the location in a 2D projected coordiante system from an origin point. Without projection information, it doesn't have a meaningful location x, y values.&lt;BR /&gt;What I'm trying to say is you would like to show a meaningful location here. &lt;BR /&gt;Back to your question, you can use the following code snippet to show the x, y values under current projection of your map.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(measurement, "onMeasureEnd", function(toolName, geometry){
&amp;nbsp; if (toolName === "location") {
&amp;nbsp;&amp;nbsp;&amp;nbsp; measurement.resultValue.domNode.innerHTML = "x: "+ geometry.x + "&amp;lt;br/&amp;gt;y: " + geometry.y;
&amp;nbsp; }
});
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Jian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tested this code but its not working. I need to add esri.Meters in esri.dijit.measurement Location units. After adding this, I want to show measurement location by default in esri.Meters like below code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;measurement = new esri.dijit.Measurement({ map: map, lineSymbol: sls,defaultLengthUnit: esri.Units.METERS, defaultAreaUnit: esri.Units.SQUARE_METERS; defaultLengthUnit: esri.Units.METERS}, dojo.byId('measurementDiv'));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but I am not having "esri.Units.METERS" in dropdownlist of units for location. So, I can I do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nita&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137416#M12785</guid>
      <dc:creator>nitakumari</dc:creator>
      <dc:date>2021-12-11T07:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement  Location Customization</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137417#M12786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To add to this.&amp;nbsp; Esri tend to take a world view of things, alas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To many, such as us in the UK, we take a local view.&amp;nbsp; ALL our data is in WKID 27700 - British National Grid - which is a simpla(ish) XY system, in METRES (note spelling) from a point in the Atlantic.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only co-ordinate system most of our users will ever come across&amp;nbsp; will be this.&amp;nbsp; They need to be able to give co-ordinates out in metres and be able to get them in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Long Lats, or any other world projection just confuses the issue and I have to do conversions (in ArcIMS days 100+ lines of code, in AGS days, about 5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So please can the Measurement Widget be set to use the co-ordinate system of the map and return in the units it uses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 06:19:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-nbsp-location-customization/m-p/137417#M12786</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2013-02-15T06:19:37Z</dc:date>
    </item>
  </channel>
</rss>

