<?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: Marker Placement in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/marker-placement/m-p/238597#M5617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solution to Part 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myGraphic:Graphic = new Graphic();
 var wgs:SpatialReference = new SpatialReference(4326);
 {
&amp;nbsp; var test= new MapPoint(-122,47.40,wgs);
&amp;nbsp; myGraphic.geometry = WebMercatorUtil.geographicToWebMercator(test);
&amp;nbsp; 
&amp;nbsp; myGraphic = new Graphic(myGraphic.geometry,
&amp;nbsp; new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 22, 0x009933));
&amp;nbsp; myGraphic.toolTip = "Marker added with ActionScript";
&amp;nbsp; myGraphicsLayer.add(myGraphic);
 }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 12:00:45 GMT</pubDate>
    <dc:creator>SamerToukan</dc:creator>
    <dc:date>2021-12-11T12:00:45Z</dc:date>
    <item>
      <title>Marker Placement</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/marker-placement/m-p/238596#M5616</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;BR /&gt;&lt;SPAN&gt;I have been trying to place a single marker onto a point of which I have the google, latitude/longitude of. I do so with the following code,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var myGraphicMarker:Graphic = new Graphic(new MapPoint(-120.0, 54.3,new SpatialReference(4326)), 
&amp;nbsp; new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 44, 0x009933));
&amp;nbsp; myGraphicMarker.toolTip = "Marker added with ActionScript";
&amp;nbsp; myGraphicsLayer.add(myGraphicMarker);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SpatialReference(4326) is Lat/Long. However I have 3 problems I cannot seem to overcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. The location of the marker is incorrect. It is appearing to stay on WebMercator. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have looked over some other samples such as WebMercatorUtil where it converts the co-ords. How can I use this&amp;nbsp; for the follow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Input Lat/Long - &amp;gt; WebMercatorUtil - &amp;gt; X, Y -&amp;gt; MapPoint(X,Y)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Any Examples of how I can make a custom marker using actionscript and Popup Window using actionscript on click of marker?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 16:28:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/marker-placement/m-p/238596#M5616</guid>
      <dc:creator>SamerToukan</dc:creator>
      <dc:date>2011-10-03T16:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Marker Placement</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/marker-placement/m-p/238597#M5617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solution to Part 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myGraphic:Graphic = new Graphic();
 var wgs:SpatialReference = new SpatialReference(4326);
 {
&amp;nbsp; var test= new MapPoint(-122,47.40,wgs);
&amp;nbsp; myGraphic.geometry = WebMercatorUtil.geographicToWebMercator(test);
&amp;nbsp; 
&amp;nbsp; myGraphic = new Graphic(myGraphic.geometry,
&amp;nbsp; new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 22, 0x009933));
&amp;nbsp; myGraphic.toolTip = "Marker added with ActionScript";
&amp;nbsp; myGraphicsLayer.add(myGraphic);
 }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:00:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/marker-placement/m-p/238597#M5617</guid>
      <dc:creator>SamerToukan</dc:creator>
      <dc:date>2021-12-11T12:00:45Z</dc:date>
    </item>
  </channel>
</rss>

