<?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 View goTo() with Point in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-with-point/m-p/653523#M60888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noticed that zooming with single Point with .goTo({ target: geometries }) does not work. If I have 2 Points in array of 'geometries' then zooming to target is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm missing? a single Point does not have extent, is that the reason why zooming does not work?&lt;/P&gt;&lt;P&gt;I'm using same view.toGo() to Point, Polygon, Polyline -geometries and it is working fine but single Point does not zoom to the target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached demo of the problem. Press "Bounce to Berlin" -button to notice that zooming to target is not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using JS API 4.10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: Solved problem with check&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if (geometries &amp;amp;&amp;amp; geometries.length === 1 &amp;amp;&amp;amp; geometries[0].type === 'point') {&lt;BR /&gt; view.goTo({&lt;BR /&gt; target: geometries,&lt;BR /&gt; scale: view.maxScale,&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Mar 2019 10:58:56 GMT</pubDate>
    <dc:creator>MarkusÅfelt</dc:creator>
    <dc:date>2019-03-06T10:58:56Z</dc:date>
    <item>
      <title>View goTo() with Point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-with-point/m-p/653523#M60888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noticed that zooming with single Point with .goTo({ target: geometries }) does not work. If I have 2 Points in array of 'geometries' then zooming to target is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm missing? a single Point does not have extent, is that the reason why zooming does not work?&lt;/P&gt;&lt;P&gt;I'm using same view.toGo() to Point, Polygon, Polyline -geometries and it is working fine but single Point does not zoom to the target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached demo of the problem. Press "Bounce to Berlin" -button to notice that zooming to target is not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using JS API 4.10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: Solved problem with check&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if (geometries &amp;amp;&amp;amp; geometries.length === 1 &amp;amp;&amp;amp; geometries[0].type === 'point') {&lt;BR /&gt; view.goTo({&lt;BR /&gt; target: geometries,&lt;BR /&gt; scale: view.maxScale,&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 10:58:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-with-point/m-p/653523#M60888</guid>
      <dc:creator>MarkusÅfelt</dc:creator>
      <dc:date>2019-03-06T10:58:56Z</dc:date>
    </item>
  </channel>
</rss>

