<?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: Map graphics Selection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphics-selection/m-p/333973#M30861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks tom for your response&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the selection is not happening through mouse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem is the map graphics are nothing but query results, which is a result of query fired or tracing operation performed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var lastSelectedGraphic;

function init() {
 /**
 ** Do your init work here...
 **/
 map.graphics.enableMouseEvents();
 dojo.connect(map.graphics, "onClick", function(evt) {
&amp;nbsp; lastSelectedGraphic = evt.graphic;
&amp;nbsp; // You can do more work with the graphic here, but it is also stored for access anytime time later.
 });
}

init();
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;From there you can get what you need, I think.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 15:48:40 GMT</pubDate>
    <dc:creator>praveenraorane</dc:creator>
    <dc:date>2021-12-11T15:48:40Z</dc:date>
    <item>
      <title>Map graphics Selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphics-selection/m-p/333971#M30859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How to get existing map graphics selection along with its attribute i.e layername,objectid ...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 05:54:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphics-selection/m-p/333971#M30859</guid>
      <dc:creator>praveenraorane</dc:creator>
      <dc:date>2012-05-08T05:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Map graphics Selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphics-selection/m-p/333972#M30860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var lastSelectedGraphic;

function init() {
 /**
 ** Do your init work here...
 **/
 map.graphics.enableMouseEvents();
 dojo.connect(map.graphics, "onClick", function(evt) {
&amp;nbsp; lastSelectedGraphic = evt.graphic;
&amp;nbsp; // You can do more work with the graphic here, but it is also stored for access anytime time later.
 });
}

init();
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From there you can get what you need, I think.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphics-selection/m-p/333972#M30860</guid>
      <dc:creator>TomJacoby</dc:creator>
      <dc:date>2021-12-11T15:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Map graphics Selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphics-selection/m-p/333973#M30861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks tom for your response&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the selection is not happening through mouse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem is the map graphics are nothing but query results, which is a result of query fired or tracing operation performed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var lastSelectedGraphic;

function init() {
 /**
 ** Do your init work here...
 **/
 map.graphics.enableMouseEvents();
 dojo.connect(map.graphics, "onClick", function(evt) {
&amp;nbsp; lastSelectedGraphic = evt.graphic;
&amp;nbsp; // You can do more work with the graphic here, but it is also stored for access anytime time later.
 });
}

init();
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;From there you can get what you need, I think.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:48:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphics-selection/m-p/333973#M30861</guid>
      <dc:creator>praveenraorane</dc:creator>
      <dc:date>2021-12-11T15:48:40Z</dc:date>
    </item>
  </channel>
</rss>

