<?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: View goTo target, looking for the best solution if there are many polygons and graphics. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245905#M79787</link>
    <description>&lt;P&gt;At this point, I'd probably just recommend calculating the extent manually and zooming to that:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var extent = null;

for (var i = 0; i &amp;lt; objCoordinates.length; i++) {
	//etc...

	if (extent === null)
		extent = polygon.extent.clone();
	else
		extent.union(polygon.extent);
}

this.view.goTo(extent).catch(this.catchAbortError);&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 05 Jan 2023 23:46:41 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2023-01-05T23:46:41Z</dc:date>
    <item>
      <title>View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1243957#M79746</link>
      <description>&lt;P&gt;At a certain user's choice, I draw the necessary polygons at the given coordinates from the given object and add them to the map in the form of graph figures. Then I want to show the selection on the map and use method GOTO.&amp;nbsp; Polygons are added in a loop.&amp;nbsp;&amp;nbsp;I've already tried all sorts of ways. And zoomed in. And changed in a cycle. And after the cycle. And in the end, it's still kind of clumsy. That's not in the right place. Either too small or too large. If, for example, the United States, then it is not in the middle at all. How best to use To zoom the user on the map to the right place? Is there a better optimal solution? Has anyone encountered similar problems?&lt;/P&gt;&lt;P&gt;&lt;U&gt;my code is something like this :&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const map = new Map({&lt;BR /&gt;ground: "world-elevation",&lt;BR /&gt;basemap: grayBasemap&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;const view = new SceneView({&lt;BR /&gt;container,&lt;BR /&gt;map: map,&lt;BR /&gt;qualityProfile: "high",&lt;BR /&gt;zoom: 4&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;this.view.graphics.removeAll();&lt;/P&gt;&lt;P&gt;for (var i = 0; i &amp;lt; objCoordinates.length; i++) {&lt;BR /&gt;var coordinates = objCoordinates[0];&lt;BR /&gt;var polygon = new Polygon();&lt;BR /&gt;polygon.addRing(coordinates);&lt;/P&gt;&lt;P&gt;var polygonGraphic = new Graphic({&lt;BR /&gt;geometry: polygon,&lt;BR /&gt;symbol: fillSymbol&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;this.view.graphics.add(polygonGraphic);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;this.view.goTo({&lt;BR /&gt;target: this.view.graphics&lt;BR /&gt;}).catch(this.catchAbortError);&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 11:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1243957#M79746</guid>
      <dc:creator>DimaY</dc:creator>
      <dc:date>2022-12-28T11:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1244199#M79748</link>
      <description>&lt;P&gt;I already see 441 views, but so no one could suggest anything?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sadly. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 13:22:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1244199#M79748</guid>
      <dc:creator>DimaY</dc:creator>
      <dc:date>2022-12-29T13:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245400#M79773</link>
      <description>&lt;P&gt;I see the first line in your loop is:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var coordinates = objCoordinates[0];&lt;/LI-CODE&gt;&lt;P&gt;This would definitely throw off your results, and I think you would rather intend:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var coordinates = objCoordinates[i];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 19:16:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245400#M79773</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-01-04T19:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245656#M79781</link>
      <description>&lt;P&gt;if (objGeoJSON.type == "Polygon") {&lt;BR /&gt;var coordinates = objCoordinates[0];&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;var coordinates = objCoordinates[i][0];&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;No. It's not a mistake. I just didn't show all the code, because that's not the problem at all.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is right here. When I add many countries. Or a lot of polygons. view GOTO to geometries or goto&amp;nbsp; to all graphs don't work, as in this case.&amp;nbsp; for example&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this.view.goTo({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;target: this.view.graphics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}).catch(this.catchAbortError);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 16:43:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245656#M79781</guid>
      <dc:creator>DimaY</dc:creator>
      <dc:date>2023-01-05T16:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245716#M79782</link>
      <description>&lt;P&gt;Regarding this code:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;this.view.goTo({
	target: this.view.graphics
}).catch(this.catchAbortError);&lt;/LI-CODE&gt;&lt;P&gt;this.view.graphics is a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html" target="_self"&gt;Collection&lt;/A&gt;, but the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo" target="_self"&gt;documentation for goTo&lt;/A&gt; does not specify that a Collection is supported.&amp;nbsp; I would recommend passing a value specified in the documentation, like an array of Graphics:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.view.goTo(this.view.graphics.toArray()).catch(this.catchAbortError);&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Jan 2023 17:57:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245716#M79782</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-01-05T17:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245876#M79784</link>
      <description>&lt;P&gt;Thanks for your reply. Alas, but it does not help. I already tried both array of geometries and array of graphs. What I just did not do when there are a lot of polygons and graphs, it does not work correctly.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 22:17:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245876#M79784</guid>
      <dc:creator>DimaY</dc:creator>
      <dc:date>2023-01-05T22:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245905#M79787</link>
      <description>&lt;P&gt;At this point, I'd probably just recommend calculating the extent manually and zooming to that:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var extent = null;

for (var i = 0; i &amp;lt; objCoordinates.length; i++) {
	//etc...

	if (extent === null)
		extent = polygon.extent.clone();
	else
		extent.union(polygon.extent);
}

this.view.goTo(extent).catch(this.catchAbortError);&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Jan 2023 23:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245905#M79787</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-01-05T23:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245955#M79790</link>
      <description>&lt;P&gt;Thank you very much again! It's nice to read a thinking person and understanding what he is talking about.&lt;/P&gt;&lt;P&gt;If I understood you correctly, then another idea is to collect not arrays of geometries or graphs, as a target, namely, to collect the sum of extent each polygon?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 10:59:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245955#M79790</guid>
      <dc:creator>DimaY</dc:creator>
      <dc:date>2023-01-06T10:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245989#M79794</link>
      <description>&lt;P&gt;Thanks. I tried it and this solution really looks much better in many cases. But there is one case and I attached files with a picture, where it is shown how I would like it to be in reality and for some reason how it turns out. I do not understand why it turns out away from the created polygons. For example, in the case where there are many multipolygons, as in the case of the USA and the islands around.&amp;nbsp; There is no even understanding why this is so?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 14:01:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1245989#M79794</guid>
      <dc:creator>DimaY</dc:creator>
      <dc:date>2023-01-06T14:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246117#M79798</link>
      <description>&lt;P&gt;It looks like in this case, the issue is because the full extent is crossing the international dateline.&amp;nbsp; Therefore, a single extent object will have 'x' values that go beyond the boundaries of what's defined for the coordinate system.&amp;nbsp; You may be able to solve this easily by using &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#normalize" target="_self"&gt;Extent.normalize&lt;/A&gt;.&amp;nbsp; In that case, the final line would be:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.view.goTo(extent.normalize()).catch(this.catchAbortError);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although &lt;A href="https://community.esri.com/t5/qt-maps-sdk-questions/retrieving-map-extent-across-180/td-p/683191" target="_self"&gt;this post&lt;/A&gt; is from a completely different API, the images used in the post marked as a solution help to illustrate what you're seeing.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 18:11:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246117#M79798</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-01-06T18:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246169#M79801</link>
      <description>&lt;P&gt;I was so happy that there was finally a solution to this unsolvable problem. But unfortunately, everything is the same without changes. The problem hasn't been resolved.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 20:25:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246169#M79801</guid>
      <dc:creator>DimaY</dc:creator>
      <dc:date>2023-01-06T20:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246188#M79802</link>
      <description>&lt;P&gt;I wasn't certain that would work, but it was worth a try.&amp;nbsp; In this case, I think you must fix the extent so that it starts on the left-hand side of the international dateline, and extends eastward across it.&amp;nbsp; You should add this function somewhere in your code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function fixExtent(extent) {
	var extents = extent.normalize();

	if (extents.length === 1)
		return extents[0];
	else {
		var westExtent, eastExtent;

		if (extents[0].xmax &amp;gt; extents[1].xmax) {
			westExtent = extents[0];
			eastExtent = extents[1];
		} else {
			westExtent = extents[1];
			eastExtent = extents[0];
		}

		westExtent.xmax += eastExtent.width;

		return westExtent;
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, you would change the call to goTo to be&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.view.goTo(fixExtent(extent)).catch(this.catchAbortError);&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Jan 2023 21:08:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246188#M79802</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-01-06T21:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246260#M79808</link>
      <description>&lt;P&gt;Once again I want to thank you for your complicity in the problem and for your answers. Thank you! Here, from the documentation and the code, another question appeared.&amp;nbsp;The documentation recommends, in a case similar to my code, to use extent clone.&amp;nbsp;&amp;nbsp;Although I do not really understand why and what it changes and gives in the end.&amp;nbsp;But the question is this from the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (extent === null)&lt;BR /&gt;extent = polygon.extent.clone();&lt;BR /&gt;else&lt;BR /&gt;extent.union(polygon.extent);&lt;/P&gt;&lt;P&gt;Why don't&amp;nbsp; use clone everywhere?&amp;nbsp; For example&amp;nbsp;extent.union(polygon.extent);??&amp;nbsp;&lt;/P&gt;&lt;P&gt;extent.union(polygon.extent.clone());&lt;/P&gt;&lt;P&gt;Could this have something to do with it and make some difference?&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 10:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246260#M79808</guid>
      <dc:creator>DimaY</dc:creator>
      <dc:date>2023-01-07T10:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246277#M79809</link>
      <description>&lt;P&gt;Unfortunately, this did not help in solving the problem. Everything is exactly the same as it was before.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 17:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246277#M79809</guid>
      <dc:creator>DimaY</dc:creator>
      <dc:date>2023-01-07T17:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246279#M79810</link>
      <description>&lt;P&gt;I will also add that I get the length&amp;nbsp; if (extents.length === 1)&amp;nbsp;in any case all the time equal to 1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 17:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246279#M79810</guid>
      <dc:creator>DimaY</dc:creator>
      <dc:date>2023-01-07T17:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246542#M79823</link>
      <description>&lt;P&gt;We should clone the extent because we plan to modify the values of that extent object, and we eliminate the potential of those changes causing problems for the owning polygon object.&amp;nbsp; (In this particular case, it probably wouldn't matter, but it's just good practice.)&lt;/P&gt;&lt;P&gt;In the line:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;extent.union(polygon.extent);&lt;/LI-CODE&gt;&lt;P&gt;only "extent" is modified, not "polygon.extent", so there is no need to clone "polygon.extent".&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 18:01:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246542#M79823</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-01-09T18:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246546#M79824</link>
      <description>&lt;P&gt;Ok, this makes it somewhat difficult, because the full width of the calculated extent is the full width of the coordinate system itself.&amp;nbsp; The map therefore centers at the Prime Meridian.&lt;/P&gt;&lt;P&gt;Does your dataset include data throughout the world, or just the US and the Pacific?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 18:04:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1246546#M79824</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-01-09T18:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1247132#M79842</link>
      <description>&lt;PRE&gt;if (extent === null)
		extent = polygon.extent.clone();
	else
		extent.union(polygon.extent);&lt;/PRE&gt;&lt;P&gt;Interesting. Then how do you explain this line? extent = polygon.extent.clone();&lt;/P&gt;&lt;P&gt;This is not a polygon extent clone?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 05:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1247132#M79842</guid>
      <dc:creator>DimaY</dc:creator>
      <dc:date>2023-01-11T05:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1247135#M79843</link>
      <description>&lt;P&gt;In various situations and cases, I receive information about an object that comes to me in the form of objects, one of the objects is GeoJson, which has coordinates. All cases from any other regions of the world work quite well with zoom. And only this case, as I showed in the pictures when I wrote the topic. For some reason it does not rotate the globe and stops and does not zoom. I don't understand why at all.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 05:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1247135#M79843</guid>
      <dc:creator>DimaY</dc:creator>
      <dc:date>2023-01-11T05:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: View goTo target, looking for the best solution if there are many polygons and graphics.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1247314#M79851</link>
      <description>&lt;P&gt;As stated previously, "&lt;SPAN&gt;We should clone the extent because we plan to modify the values of that extent object".&amp;nbsp; In the first pass of the loop, we clone the first polygon's extent, because in each subsequent pass, that object will be modified in place by the union function.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 16:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-goto-target-looking-for-the-best-solution-if/m-p/1247314#M79851</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-01-11T16:21:51Z</dc:date>
    </item>
  </channel>
</rss>

