<?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: How can I select the portion in Map in Rectangle box and zoom it? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606910#M56753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you working with a Feature Service or a Dynamic Map service layer? You will first need to create an event listener on the layer to determine if the user has clicked on the layer. &amp;nbsp;Depending on the layer type, you must define the function for the layer click event - for Feature Layer you can use the geometry of the graphic feature directly and for Dynamic Services you probably need to do an Query or Identify Task (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/identifytask-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/identifytask-amd.html"&gt;IdentifyTask | API Reference | ArcGIS API for JavaScript 3.18&lt;/A&gt;&amp;nbsp;) first to retrieve the feature geometry. &amp;nbsp;Then only can you use the map's setExtent function (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#setextent" title="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#setextent"&gt;Map | API Reference | ArcGIS API for JavaScript 3.18&lt;/A&gt;&amp;nbsp;) to zoom to the extent of the portion&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setExtent&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;esri&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;graphicsExtent&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;clickGraphic&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2016 06:20:10 GMT</pubDate>
    <dc:creator>FC_Basson</dc:creator>
    <dc:date>2016-11-30T06:20:10Z</dc:date>
    <item>
      <title>How can I select the portion in Map in Rectangle box and zoom it?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606909#M56752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I select the portion in Map in Rectangle box and zoom it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 04:51:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606909#M56752</guid>
      <dc:creator>AmatyaGupta</dc:creator>
      <dc:date>2016-11-30T04:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select the portion in Map in Rectangle box and zoom it?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606910#M56753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you working with a Feature Service or a Dynamic Map service layer? You will first need to create an event listener on the layer to determine if the user has clicked on the layer. &amp;nbsp;Depending on the layer type, you must define the function for the layer click event - for Feature Layer you can use the geometry of the graphic feature directly and for Dynamic Services you probably need to do an Query or Identify Task (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/identifytask-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/identifytask-amd.html"&gt;IdentifyTask | API Reference | ArcGIS API for JavaScript 3.18&lt;/A&gt;&amp;nbsp;) first to retrieve the feature geometry. &amp;nbsp;Then only can you use the map's setExtent function (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#setextent" title="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#setextent"&gt;Map | API Reference | ArcGIS API for JavaScript 3.18&lt;/A&gt;&amp;nbsp;) to zoom to the extent of the portion&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setExtent&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;esri&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;graphicsExtent&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;clickGraphic&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 06:20:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606910#M56753</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-11-30T06:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select the portion in Map in Rectangle box and zoom it?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606911#M56754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Iam not able to select the map via rectangle box. How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have done fullExtent through the below code:&lt;/P&gt;&lt;P&gt;map.setExtent(dynamicMapServiceLayer.fullExtent);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Now I want to make a tool through as i select the portion of map it should zoom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plzz reply as soon as possible.&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 09:08:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606911#M56754</guid>
      <dc:creator>AmatyaGupta</dc:creator>
      <dc:date>2016-11-30T09:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select the portion in Map in Rectangle box and zoom it?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606912#M56755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want to draw a rectangle to select data and zoom to the selection or just zoom by rectangle?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you looked at the RubberBandZoom property of the map?&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#isrubberbandzoom" title="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#isrubberbandzoom"&gt;Map | API Reference | ArcGIS API for JavaScript 3.18&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 09:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606912#M56755</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-11-30T09:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select the portion in Map in Rectangle box and zoom it?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606913#M56756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks FC Basson bro .. I got it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 10:59:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606913#M56756</guid>
      <dc:creator>AmatyaGupta</dc:creator>
      <dc:date>2016-11-30T10:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select the portion in Map in Rectangle box and zoom it?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606914#M56757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it brother.. Thanks for your time. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 11:00:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-select-the-portion-in-map-in-rectangle/m-p/606914#M56757</guid>
      <dc:creator>AmatyaGupta</dc:creator>
      <dc:date>2016-11-30T11:00:15Z</dc:date>
    </item>
  </channel>
</rss>

