<?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: Symbol not showing in correct place in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/symbol-not-showing-in-correct-place/m-p/493768#M11342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could also just use the WebMercatorMapPoint:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/WebMercatorMapPoint.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/WebMercatorMapPoint.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 17:48:01 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2012-10-22T17:48:01Z</dc:date>
    <item>
      <title>Symbol not showing in correct place</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/symbol-not-showing-in-correct-place/m-p/493765#M11339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to place a symbol on a map at a specified Lat/Lon coordinate. For testing purposes, I am executing my method from a mouse click anywhere on the map. I have hard coded the coordinate values and am using the following spatial reference&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:SpatialReference id="wgs" wkid="4326"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the method is executed, the symbol appears at 0,0 on the map and seems to disregard the coordinates passed in. My GraphicsLayer is grLayer. What am I doing wrong? Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; private function onMapClick(event:MapMouseEvent):void{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var coordstring:String = "38.0594, 81.1121";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var coords:Array = coordstring.split(",");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var g:Graphic = new Graphic(new MapPoint(coords[0],coords[1],wgs));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; grLayer.add(g);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Alert.show("Mouse clicked at: " + event.mapPoint.x + "|" + event.mapPoint.y);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 14:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/symbol-not-showing-in-correct-place/m-p/493765#M11339</guid>
      <dc:creator>PhilipTownsend</dc:creator>
      <dc:date>2012-10-22T14:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol not showing in correct place</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/symbol-not-showing-in-correct-place/m-p/493766#M11340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What projection is your application? If it's in Web Mercator, you'll have to project that point to that projection, like in the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private function onMapClick(event:MapMouseEvent):void{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var coordstring:String = "38.0594, 81.1121"; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var coords:Array = coordstring.split(","); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mappoint1:MapPoint = new MapPoint(coords[0],coords[1],wgs); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mappoint2:Geometry = WebMercatorUtil.geographicToWebMercator(mappoint1);&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var g:Graphic = new Graphic(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.geometry = mappoint2; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; grLayer.add(g); }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 14:47:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/symbol-not-showing-in-correct-place/m-p/493766#M11340</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-10-22T14:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol not showing in correct place</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/symbol-not-showing-in-correct-place/m-p/493767#M11341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Philip,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; If your maps WKID is in webmercator than use the new WebMercatorMapPoint instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;private function onMapClick(event:MapMouseEvent):void{
&amp;nbsp;&amp;nbsp;&amp;nbsp; var coordstring:String = "38.0594, 81.1121";
&amp;nbsp;&amp;nbsp;&amp;nbsp; var coords:Array = coordstring.split(",");
&amp;nbsp;&amp;nbsp;&amp;nbsp; var g:Graphic = new Graphic(new &lt;SPAN style="color:#ff0000;"&gt;WebMercatorMapPoint&lt;/SPAN&gt;(coords[0],coords[1]));
&amp;nbsp;&amp;nbsp;&amp;nbsp; grLayer.add(g);
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Alert.show("Mouse clicked at: " + event.mapPoint.x + "|" + event.mapPoint.y);
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your maps WKID (Spatial reference) is something else than you need to re-project the coordinates to that WKID:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See this sample:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/01nq/01nq0000004w000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/samples/01nq/01nq0000004w000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow these steps&lt;/STRONG&gt;&lt;SPAN&gt; as shown in the below graphic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer3.0/Answer.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:43:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/symbol-not-showing-in-correct-place/m-p/493767#M11341</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T21:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Symbol not showing in correct place</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/symbol-not-showing-in-correct-place/m-p/493768#M11342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could also just use the WebMercatorMapPoint:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/WebMercatorMapPoint.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/WebMercatorMapPoint.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 17:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/symbol-not-showing-in-correct-place/m-p/493768#M11342</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-10-22T17:48:01Z</dc:date>
    </item>
  </channel>
</rss>

