<?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: Click Map vs. Click Graphic in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/click-map-vs-click-graphic/m-p/621178#M13800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I remember to use only the click event on a map, and then u have to make a rectangular area and see if there is some graphic on it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 20:45:53 GMT</pubDate>
    <dc:creator>EvelynHernandez</dc:creator>
    <dc:date>2014-05-06T20:45:53Z</dc:date>
    <item>
      <title>Click Map vs. Click Graphic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/click-map-vs-click-graphic/m-p/621177#M13799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am listening for MouseEvent.CLICK's on the main map:Map and several Graphics in a layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is when i click a graphic I get both events in random order, so I cant reliably tell if it was a map click or graphic click&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I get the graphic clicks to override the map clicks?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;angus henderson&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 16:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/click-map-vs-click-graphic/m-p/621177#M13799</guid>
      <dc:creator>AngusHenderson</dc:creator>
      <dc:date>2014-05-05T16:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Click Map vs. Click Graphic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/click-map-vs-click-graphic/m-p/621178#M13800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I remember to use only the click event on a map, and then u have to make a rectangular area and see if there is some graphic on it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 20:45:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/click-map-vs-click-graphic/m-p/621178#M13800</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2014-05-06T20:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Click Map vs. Click Graphic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/click-map-vs-click-graphic/m-p/621179#M13801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the reply, I saw a similar technique in the javascript examples. A little more searching and i found that a map click event which started from a graphic has the graphic's symbol as the target, so I get event.target.parent as Graphic&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; private static function mapMouseUpHandler(event:MouseEvent):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if( _mouseDrag == false) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (event.target.parent is Graphic) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic:Graphic = event.target.parent as Graphic;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var idx:int = int(graphic.attributes["Index"]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tags.getInstance().onClickTag(idx);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mouseMapPoint:MapPoint = map.toMapFromStage(event.stageX, event.stageY);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var x:Number = mouseMapPoint.x;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var y:Number = mouseMapPoint.y;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapLocationQuery(map, x, y);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 14:26:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/click-map-vs-click-graphic/m-p/621179#M13801</guid>
      <dc:creator>AngusHenderson</dc:creator>
      <dc:date>2014-05-07T14:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Click Map vs. Click Graphic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/click-map-vs-click-graphic/m-p/621180#M13802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have come across the same exact situation. I found out that the identify method takes a lot more time than the graphic click. So this solution worked all the time. I set a var to values of zero and 1. 1 is assigned when the graphic is clicked. In my identify function, I check for the var value, if 1, then by pass the function and don't do anything, else, proceed with the identification.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 11:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/click-map-vs-click-graphic/m-p/621180#M13802</guid>
      <dc:creator>raffia</dc:creator>
      <dc:date>2014-06-04T11:12:22Z</dc:date>
    </item>
  </channel>
</rss>

