<?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: Dropping pins using X/Y in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dropping-pins-using-x-y/m-p/290792#M26731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sample code:&lt;BR /&gt;var pt = new esri.geometry.Point(x,y,map.spatialReference)&lt;BR /&gt;var pms = new new esri.symbols.PictureMarkerSymbol('/images/pin.png');&lt;BR /&gt;var attr = {"Xcoord":evt.mapPoint.x,"Ycoord":evt.mapPoint.y,"Plant":"Mesa Mint"};&lt;BR /&gt;var infoTemplate = new InfoTemplate("Vernal Pool Locations","Latitude: ${Ycoord} &amp;lt;br/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Longitude: ${Xcoord} &amp;lt;br/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plant Name:${Plant}");&lt;BR /&gt;var graphic = new Graphic(pt,pms,attr,infoTemplate);&lt;BR /&gt;map.graphics.add(graphic)&lt;BR /&gt;&lt;BR /&gt;where attr will be the attributes of the feature, and anything inside ${} is one of the field names in attr. I normally like to create a separate graphics layer so not to pollute map.graphics, and you will have more control over the graphics added.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, I will give it a shot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Aug 2013 13:53:24 GMT</pubDate>
    <dc:creator>SaaedBhatti</dc:creator>
    <dc:date>2013-08-08T13:53:24Z</dc:date>
    <item>
      <title>Dropping pins using X/Y</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dropping-pins-using-x-y/m-p/290790#M26729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to esri. I'm trying to figure out how to drop pin on a map using X/Y coordinates and when the pin is clicked, it needs to show the attribute information on that feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can some one please point me in the right direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 12:47:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dropping-pins-using-x-y/m-p/290790#M26729</guid>
      <dc:creator>SaaedBhatti</dc:creator>
      <dc:date>2013-08-08T12:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dropping pins using X/Y</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dropping-pins-using-x-y/m-p/290791#M26730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sample code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var pt = new esri.geometry.Point(x,y,map.spatialReference)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var pms = new new esri.symbols.PictureMarkerSymbol('/images/pin.png');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var attr = {"Xcoord":evt.mapPoint.x,"Ycoord":evt.mapPoint.y,"Plant":"Mesa Mint"};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var infoTemplate = new InfoTemplate("Vernal Pool Locations","Latitude: ${Ycoord} &amp;lt;br/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Longitude: ${Xcoord} &amp;lt;br/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plant Name:${Plant}");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var graphic = new Graphic(pt,pms,attr,infoTemplate);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.graphics.add(graphic)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where attr will be the attributes of the feature, and anything inside ${} is one of the field names in attr. I normally like to create a separate graphics layer so not to pollute map.graphics, and you will have more control over the graphics added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 13:30:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dropping-pins-using-x-y/m-p/290791#M26730</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2013-08-08T13:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dropping pins using X/Y</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dropping-pins-using-x-y/m-p/290792#M26731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sample code:&lt;BR /&gt;var pt = new esri.geometry.Point(x,y,map.spatialReference)&lt;BR /&gt;var pms = new new esri.symbols.PictureMarkerSymbol('/images/pin.png');&lt;BR /&gt;var attr = {"Xcoord":evt.mapPoint.x,"Ycoord":evt.mapPoint.y,"Plant":"Mesa Mint"};&lt;BR /&gt;var infoTemplate = new InfoTemplate("Vernal Pool Locations","Latitude: ${Ycoord} &amp;lt;br/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Longitude: ${Xcoord} &amp;lt;br/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plant Name:${Plant}");&lt;BR /&gt;var graphic = new Graphic(pt,pms,attr,infoTemplate);&lt;BR /&gt;map.graphics.add(graphic)&lt;BR /&gt;&lt;BR /&gt;where attr will be the attributes of the feature, and anything inside ${} is one of the field names in attr. I normally like to create a separate graphics layer so not to pollute map.graphics, and you will have more control over the graphics added.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, I will give it a shot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 13:53:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dropping-pins-using-x-y/m-p/290792#M26731</guid>
      <dc:creator>SaaedBhatti</dc:creator>
      <dc:date>2013-08-08T13:53:24Z</dc:date>
    </item>
  </channel>
</rss>

