<?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: Displaying marker on ArcGIS map in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/displaying-marker-on-arcgis-map/m-p/66903#M1505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried as you suggested, and got i my markers as well. Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, the problem is that when i placed the latitudes value in x and longitudes value in y markers were scattered all over the map as if positions weren't recognized, i even tried placing my earthing value in x and northing value in y but i got the same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
protected function getLocation_resultHandler(event:ResultEvent):void
{
 if(event.result.information.rmk != "error")
 {
&amp;nbsp; filterXML = event.result as XML;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; var data:Array = new Array();
&amp;nbsp; for each(table1 in filterXML.information)
&amp;nbsp; {
&amp;nbsp; }
&amp;nbsp; var myGraphicPoint:Graphic = new Graphic(new MapPoint(table1.lng , table1.lat, new SpatialReference(3857)));
&amp;nbsp; myGraphicPoint.symbol = pictureMarker;
&amp;nbsp; myGraphicsLayer.add(myGraphicPoint);
 }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code gets me last latitude and longitude which are in table1 as i have already written those correspond to location some where in Punjab, but in AcrGIS map marker is placed some where near Africa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 22:34:18 GMT</pubDate>
    <dc:creator>SamarthGupta</dc:creator>
    <dc:date>2021-12-10T22:34:18Z</dc:date>
    <item>
      <title>Displaying marker on ArcGIS map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/displaying-marker-on-arcgis-map/m-p/66901#M1503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am building a flex desktop application for displaying some co-ordinates using ArcGIS Maps. As, i am new to ArcGIS map's, i have been going through API reference, and other things to be friendly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When i was going through map point to display marker's on map, i wasn't able to find out in which format did map point takes the co-ordinates of the location to display marker.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a list of co-ordinates where i wish to show multiple markers i have northings, eastings, latitude, longitude (555388.31, 3455103.45, 31.22878668, 75.581577) respectively which correspond to location some where near "Jalandhar, Punjab, India"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can, some knows about the format of map point?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 11:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/displaying-marker-on-arcgis-map/m-p/66901#M1503</guid>
      <dc:creator>SamarthGupta</dc:creator>
      <dc:date>2014-05-16T11:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying marker on ArcGIS map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/displaying-marker-on-arcgis-map/m-p/66902#M1504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think all you need is X and Y coordinates to create mappoints.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming you have you data in an arrayCollection or a tempArray you can add XY data to the map in the following fashion:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
for(var i:int=0;i&amp;lt;tempArray.length;i++)
{
 var obj:Object=tempArray.getItemAt(i);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 var myGraphicPoint:Graphic = new Graphic(new MapPoint(obj.X , obj.Y, new SpatialReference(3857)));
 myGraphicPoint.symbol = pointSymbol;
 myGraphicsLayer.add(myGraphicPoint);
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:34:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/displaying-marker-on-arcgis-map/m-p/66902#M1504</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2021-12-10T22:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying marker on ArcGIS map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/displaying-marker-on-arcgis-map/m-p/66903#M1505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried as you suggested, and got i my markers as well. Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, the problem is that when i placed the latitudes value in x and longitudes value in y markers were scattered all over the map as if positions weren't recognized, i even tried placing my earthing value in x and northing value in y but i got the same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
protected function getLocation_resultHandler(event:ResultEvent):void
{
 if(event.result.information.rmk != "error")
 {
&amp;nbsp; filterXML = event.result as XML;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; var data:Array = new Array();
&amp;nbsp; for each(table1 in filterXML.information)
&amp;nbsp; {
&amp;nbsp; }
&amp;nbsp; var myGraphicPoint:Graphic = new Graphic(new MapPoint(table1.lng , table1.lat, new SpatialReference(3857)));
&amp;nbsp; myGraphicPoint.symbol = pictureMarker;
&amp;nbsp; myGraphicsLayer.add(myGraphicPoint);
 }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code gets me last latitude and longitude which are in table1 as i have already written those correspond to location some where in Punjab, but in AcrGIS map marker is placed some where near Africa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:34:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/displaying-marker-on-arcgis-map/m-p/66903#M1505</guid>
      <dc:creator>SamarthGupta</dc:creator>
      <dc:date>2021-12-10T22:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying marker on ArcGIS map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/displaying-marker-on-arcgis-map/m-p/66904#M1506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is more than likely a spatial reference issue. Make sure you are using the right Spatial reference . Also make sure X is long and Y is lat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var myGraphicPoint:Graphic = new Graphic(new MapPoint(table1.lng , table1.lat, &lt;/SPAN&gt;&lt;STRONG&gt;new SpatialReference(3857)&lt;/STRONG&gt;&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2014 19:50:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/displaying-marker-on-arcgis-map/m-p/66904#M1506</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2014-05-17T19:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying marker on ArcGIS map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/displaying-marker-on-arcgis-map/m-p/66905#M1507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How to decide which spatial reference should i use? Any, reference...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 03:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/displaying-marker-on-arcgis-map/m-p/66905#M1507</guid>
      <dc:creator>SamarthGupta</dc:creator>
      <dc:date>2014-05-19T03:35:28Z</dc:date>
    </item>
  </channel>
</rss>

