<?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 Wants to create Onclick event to select particular state in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wants-to-create-onclick-event-to-select-particular/m-p/630352#M58818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Morning,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My 1 st problem :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on US states layer (created map service in AGS 10.1). Now trying to highlight a state on&amp;nbsp; a mouse click..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for ex. let's say I have one point&amp;nbsp; in California&amp;nbsp; state so if I click on that point the California state should be highlighted and comes to center of the box (Map window).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently looking this type of example but I am not able get similar type of example in JSAPI. I am new to the&amp;nbsp; Development according to my logic code should be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect(map.graphics,"onClick",identifyFeature);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;function identifyFeatures(evt) { ---some code----}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My 2nd problem :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am really&amp;nbsp; frustrated..I gone through "Getting started to AGS_JSAPI" pdfs (good material for beginners) but not able to identify the exact requirement&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;how should I write the code according to requirement &lt;/SPAN&gt;&lt;SPAN&gt; I mean the examples are good but I am not able to customize it according to clients requirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help/suggestion/Workflow is highly appreciated..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 11:56:15 GMT</pubDate>
    <dc:creator>SunilPalkar</dc:creator>
    <dc:date>2012-10-15T11:56:15Z</dc:date>
    <item>
      <title>Wants to create Onclick event to select particular state</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wants-to-create-onclick-event-to-select-particular/m-p/630352#M58818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Morning,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My 1 st problem :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on US states layer (created map service in AGS 10.1). Now trying to highlight a state on&amp;nbsp; a mouse click..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for ex. let's say I have one point&amp;nbsp; in California&amp;nbsp; state so if I click on that point the California state should be highlighted and comes to center of the box (Map window).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently looking this type of example but I am not able get similar type of example in JSAPI. I am new to the&amp;nbsp; Development according to my logic code should be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect(map.graphics,"onClick",identifyFeature);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;function identifyFeatures(evt) { ---some code----}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My 2nd problem :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am really&amp;nbsp; frustrated..I gone through "Getting started to AGS_JSAPI" pdfs (good material for beginners) but not able to identify the exact requirement&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;how should I write the code according to requirement &lt;/SPAN&gt;&lt;SPAN&gt; I mean the examples are good but I am not able to customize it according to clients requirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help/suggestion/Workflow is highly appreciated..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 11:56:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wants-to-create-onclick-event-to-select-particular/m-p/630352#M58818</guid>
      <dc:creator>SunilPalkar</dc:creator>
      <dc:date>2012-10-15T11:56:15Z</dc:date>
    </item>
  </channel>
</rss>

