<?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 zoom to search layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-search-layer/m-p/759339#M70312</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;While i m doing&amp;nbsp; zoom to search layer at that time it will give me javascript error..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;although i m able to draw graphics but the next step is zoom to feature is not working...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case of polygon its working but in case of Point its not working&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: g.geometry.getExtent() is null&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Plz help me........&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2011 04:15:34 GMT</pubDate>
    <dc:creator>shwetakunjadia</dc:creator>
    <dc:date>2011-10-25T04:15:34Z</dc:date>
    <item>
      <title>zoom to search layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-search-layer/m-p/759339#M70312</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;While i m doing&amp;nbsp; zoom to search layer at that time it will give me javascript error..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;although i m able to draw graphics but the next step is zoom to feature is not working...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case of polygon its working but in case of Point its not working&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: g.geometry.getExtent() is null&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Plz help me........&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 04:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-search-layer/m-p/759339#M70312</guid>
      <dc:creator>shwetakunjadia</dc:creator>
      <dc:date>2011-10-25T04:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: zoom to search layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-search-layer/m-p/759340#M70313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Point geometry does not have the method getExtent().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get the extent of a point one option would be to create your own extent from the x/y coordinates of the point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
if (g.geometry.type == "point")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new esri.geometry.Extent({"xmin":g.geometry.x - 2000,"ymin":g.geometry.y - 2000,"xmax":g.geometry.x + 2000,"ymax":g.geometry.y + 2000,"spatialReference":{"wkid":g.geometry.spatialReference.wkid}});
else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.geometry.getExtent();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-search-layer/m-p/759340#M70313</guid>
      <dc:creator>JoeJeurissen</dc:creator>
      <dc:date>2021-12-12T08:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: zoom to search layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-search-layer/m-p/759341#M70314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for reply its working....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 08:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-search-layer/m-p/759341#M70314</guid>
      <dc:creator>shwetakunjadia</dc:creator>
      <dc:date>2011-10-28T08:12:52Z</dc:date>
    </item>
  </channel>
</rss>

