<?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 How to zoom on feature for any layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-on-feature-for-any-layer/m-p/1101653#M74776</link>
    <description>&lt;P data-unlink="true"&gt;Is it possible to zoom in on a feature in a layer-agnostic way? I am making use of the function goTo()&amp;nbsp; which accepts as parameters Geometry, Graphic, Viewpoint, a pair of coordinates or an Object&amp;nbsp;&lt;SPAN&gt;with a combination of&amp;nbsp;&lt;/SPAN&gt;target&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;center&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;scale&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;rotation&lt;SPAN&gt;&amp;nbsp;properties. I would like to center on features from layers of different types be they GeoJSON layer or WMS Layer. So far I have not found any properties in Layer that would make it possible to extract feature information that can be passed into goTo().&amp;nbsp; I can do it by targeting certain layers, for example for GeoJSON I can parse it for geometry property and pass that to goTo() or use the graphics property in GraphicsLayer. But I was wondering if it is possible to do it in a universal way for layers as some like WMSLayer lack even basic feature information.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Sep 2021 15:20:22 GMT</pubDate>
    <dc:creator>ironmaskito</dc:creator>
    <dc:date>2021-09-24T15:20:22Z</dc:date>
    <item>
      <title>How to zoom on feature for any layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-on-feature-for-any-layer/m-p/1101653#M74776</link>
      <description>&lt;P data-unlink="true"&gt;Is it possible to zoom in on a feature in a layer-agnostic way? I am making use of the function goTo()&amp;nbsp; which accepts as parameters Geometry, Graphic, Viewpoint, a pair of coordinates or an Object&amp;nbsp;&lt;SPAN&gt;with a combination of&amp;nbsp;&lt;/SPAN&gt;target&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;center&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;scale&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;rotation&lt;SPAN&gt;&amp;nbsp;properties. I would like to center on features from layers of different types be they GeoJSON layer or WMS Layer. So far I have not found any properties in Layer that would make it possible to extract feature information that can be passed into goTo().&amp;nbsp; I can do it by targeting certain layers, for example for GeoJSON I can parse it for geometry property and pass that to goTo() or use the graphics property in GraphicsLayer. But I was wondering if it is possible to do it in a universal way for layers as some like WMSLayer lack even basic feature information.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 15:20:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-on-feature-for-any-layer/m-p/1101653#M74776</guid>
      <dc:creator>ironmaskito</dc:creator>
      <dc:date>2021-09-24T15:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to zoom on feature for any layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-on-feature-for-any-layer/m-p/1115519#M75226</link>
      <description>&lt;P&gt;You need to understand what's under the hood to implement such behaviour. From what I know, the ability to zoom requires geometry because then the ideal extent of that geometry can be calculated.&lt;/P&gt;&lt;P&gt;You already know what's required by the API to zoom somewhere so I don't understand what's the actual question? why does the API doesn't automatically supports GeoJSON and other formats? or how can you implement it independently? or what's required to extract from the GeoJSON?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 03:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-zoom-on-feature-for-any-layer/m-p/1115519#M75226</guid>
      <dc:creator>shaylavi</dc:creator>
      <dc:date>2021-11-10T03:55:36Z</dc:date>
    </item>
  </channel>
</rss>

