<?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: 4.2 goTo collection of graphics with buffer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326420#M30107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;That may have to be a side effect you have to deal with for now. In the 3.x API there was a graphicsUtils class that allowed to to get the extent of the of a FeatureLayers graphics (and thus handled the clientside FL not having a fullextent), but it has not been added to 4.x yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2017 18:49:53 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-01-26T18:49:53Z</dc:date>
    <item>
      <title>4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326408#M30095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a client side only feature layer that I add graphics to based on external data.&amp;nbsp; When I use mapView.goTo(featureLayer.source) it properly changes the zoom and panning to bring all graphics into view.&amp;nbsp; However it does not take into account the sizing of the graphics themselves so while the points are all view some graphics will be cut off out of full view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to goTo a collection of graphics but give it a buffer so that it goes out far enough to ensure the graphics are fully in view?&amp;nbsp; I can determine the buffer myself but cant find in the documentation how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 17:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326408#M30095</guid>
      <dc:creator>JasonRainwater</dc:creator>
      <dc:date>2017-01-25T17:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326409#M30096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To clarify, I would like whatever the zoom level is determined from the goTo to be +1 of whatever it would calculate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 18:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326409#M30096</guid>
      <dc:creator>JasonRainwater</dc:creator>
      <dc:date>2017-01-25T18:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326410#M30097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I don't see a way to do this in one step (currently in the API) but you could do&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;mapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;goTo&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;source&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&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;mapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;zoom &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; mapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;zoom &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 14:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326410#M30097</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-26T14:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326411#M30098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually tried that.&amp;nbsp; mapView.zoom is -1 at this time and even if I hard code setting zoom to a value of 4 if I inspect the value after setting it its still -1 so its as if the setter is throwing the value away.&amp;nbsp; maybe its "isInteracting" or something and you cant change the zoom while its interacting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 14:28:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326411#M30098</guid>
      <dc:creator>JasonRainwater</dc:creator>
      <dc:date>2017-01-26T14:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326412#M30099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Well the first thing I would try is setTimeout in the then function then to see if it is a timing issue.&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; font-size: 14px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;mapView&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit; font-size: 14px;"&gt;goTo&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;featureLayer&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;source&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit; font-size: 14px;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;function&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;{setTimeout(function(){&lt;/SPAN&gt;mapView&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;zoom &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt; mapView&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;zoom &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039); border: 0px; font-weight: inherit; font-size: 14px;"&gt;+&lt;/SPAN&gt; &lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit; font-size: 14px;"&gt;1}, 50)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 14:42:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326412#M30099</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-26T14:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326413#M30100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to get the extent of the featureLayer and then expanding/buffer the geometry by a factor. That way your target geometry will always be bigger then the featureLayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thejus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 14:52:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326413#M30100</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2017-01-26T14:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326414#M30101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see how that works.&amp;nbsp; its a custom empty&amp;nbsp;feature layer added on the fly.&amp;nbsp; when I check the fullextent property of the feature layer its null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 18:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326414#M30101</guid>
      <dc:creator>JasonRainwater</dc:creator>
      <dc:date>2017-01-26T18:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326415#M30102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tried that.&amp;nbsp; same issue.&amp;nbsp;-1 before the goTo, -1 after the goTo, -1 after the setTimeout (I waited 1000ms), -1 after I try to set it to any value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 18:07:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326415#M30102</guid>
      <dc:creator>JasonRainwater</dc:creator>
      <dc:date>2017-01-26T18:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326416#M30103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So does your map have a basemap?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 18:12:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326416#M30103</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-26T18:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326417#M30104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it does not.&amp;nbsp; loading a mapserver using Layer.fromArcGisServerUrl then adding a dynamic feature layer on top of that that I then add points to manually based on external data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 18:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326417#M30104</guid>
      <dc:creator>JasonRainwater</dc:creator>
      <dc:date>2017-01-26T18:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326418#M30105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Now it makes sense that your zoom is -1 then. The zoom comes from the LODs of a basemap. So you need to sets the mapView.scale then instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 18:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326418#M30105</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-26T18:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326419#M30106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked! I multiply the scale by 1.1 after the goTo and my visuals are fully in view. However now it kind of jumps around a little &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 18:41:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326419#M30106</guid>
      <dc:creator>JasonRainwater</dc:creator>
      <dc:date>2017-01-26T18:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326420#M30107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;That may have to be a side effect you have to deal with for now. In the 3.x API there was a graphicsUtils class that allowed to to get the extent of the of a FeatureLayers graphics (and thus handled the clientside FL not having a fullextent), but it has not been added to 4.x yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 18:49:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326420#M30107</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-26T18:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326421#M30108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I don't understand is that the calculations have to be in the sdk somewhere because goTo figures it out and scales/pans to it correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 19:26:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326421#M30108</guid>
      <dc:creator>JasonRainwater</dc:creator>
      <dc:date>2017-01-26T19:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: 4.2 goTo collection of graphics with buffer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326422#M30109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Correct it is probably some private internal function of the view or the FeatureLayer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 19:29:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-2-goto-collection-of-graphics-with-buffer/m-p/326422#M30109</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-26T19:29:16Z</dc:date>
    </item>
  </channel>
</rss>

