<?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 Do GraphicsLayers use WebGL, or only FeatureLayers? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-graphicslayers-use-webgl-or-only-featurelayers/m-p/460980#M42622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My codebase currently uses 3 client-side/local-data FeatureLayers in anticipation of needing to draw Polygon, Polyline, and Point data.&lt;/P&gt;&lt;P&gt;However, I'm considering changing this to a single GraphicsLayer,&amp;nbsp;which may give me&amp;nbsp;future flexibility to differentiate and highlight certain data.&lt;/P&gt;&lt;P&gt;We're often dealing with 10,000 - 100,000 polygons, so performance is important (especially if it avoids us writing any clustering/aggregation routines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd love to see a more definitive list of criteria to use when choosing between the two for client-side rendering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.10 docs:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/index.html"&gt;Create a FeatureLayer with client side graphics | ArcGIS API for JavaScript 4.10&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bottom of this page says GraphicsLayers do not support popupTemplates, but&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#graphics" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#graphics"&gt;GraphicsLayer | API Reference | ArcGIS API for JavaScript 4.10&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;suggests popupTemplates are supported.&lt;/P&gt;&lt;P&gt;The same GraphicsLayer page also states: "&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;It is generally preferred to construct a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;FeatureLayer&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with its&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;source&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;property when working with client-side&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;graphics&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;since the FeatureLayer has more capabilities than the GraphicsLayer, including rendering, querying, and labeling.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;FeatureLayer has more capabilities of 'rendering'?&amp;nbsp; Really?&amp;nbsp; Is this&amp;nbsp;'simpler out of the box' capabilities?&amp;nbsp; Surely people use GraphicsLayer becuase it has greater rendering capabilities?&lt;/P&gt;&lt;P&gt;Ultimately this line really looks like it's&amp;nbsp;saying 'There's no reason to use a GraphicsLayer'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, all the articles&amp;nbsp;and&amp;nbsp;questions&amp;nbsp;I can find announcing WebGL refer specifically to FeatureLayers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's true that WebGL is not available on GraphicsLayers,&amp;nbsp;what is the reason for that?&lt;/P&gt;&lt;P&gt;Is it to do with the optimisation of knowing there's only one&amp;nbsp;symbol/renderer on a FeatureLayer?&amp;nbsp; Less WebGL context switching?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately, how can I tell if I should switch to GraphicsLayer?&lt;/P&gt;&lt;P&gt;The best resource (which I didnt see when I originally chose FeatureLayers) is on the Layers docs page:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html"&gt;Layer | API Reference | ArcGIS API for JavaScript 4.10&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's a good summary, but I need that little bit more info!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Nathan.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2019 18:00:57 GMT</pubDate>
    <dc:creator>NathanSummers1</dc:creator>
    <dc:date>2019-01-21T18:00:57Z</dc:date>
    <item>
      <title>Do GraphicsLayers use WebGL, or only FeatureLayers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-graphicslayers-use-webgl-or-only-featurelayers/m-p/460980#M42622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My codebase currently uses 3 client-side/local-data FeatureLayers in anticipation of needing to draw Polygon, Polyline, and Point data.&lt;/P&gt;&lt;P&gt;However, I'm considering changing this to a single GraphicsLayer,&amp;nbsp;which may give me&amp;nbsp;future flexibility to differentiate and highlight certain data.&lt;/P&gt;&lt;P&gt;We're often dealing with 10,000 - 100,000 polygons, so performance is important (especially if it avoids us writing any clustering/aggregation routines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd love to see a more definitive list of criteria to use when choosing between the two for client-side rendering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.10 docs:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/index.html"&gt;Create a FeatureLayer with client side graphics | ArcGIS API for JavaScript 4.10&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bottom of this page says GraphicsLayers do not support popupTemplates, but&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#graphics" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#graphics"&gt;GraphicsLayer | API Reference | ArcGIS API for JavaScript 4.10&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;suggests popupTemplates are supported.&lt;/P&gt;&lt;P&gt;The same GraphicsLayer page also states: "&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;It is generally preferred to construct a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;FeatureLayer&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with its&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;source&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;property when working with client-side&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;graphics&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;since the FeatureLayer has more capabilities than the GraphicsLayer, including rendering, querying, and labeling.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;FeatureLayer has more capabilities of 'rendering'?&amp;nbsp; Really?&amp;nbsp; Is this&amp;nbsp;'simpler out of the box' capabilities?&amp;nbsp; Surely people use GraphicsLayer becuase it has greater rendering capabilities?&lt;/P&gt;&lt;P&gt;Ultimately this line really looks like it's&amp;nbsp;saying 'There's no reason to use a GraphicsLayer'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, all the articles&amp;nbsp;and&amp;nbsp;questions&amp;nbsp;I can find announcing WebGL refer specifically to FeatureLayers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's true that WebGL is not available on GraphicsLayers,&amp;nbsp;what is the reason for that?&lt;/P&gt;&lt;P&gt;Is it to do with the optimisation of knowing there's only one&amp;nbsp;symbol/renderer on a FeatureLayer?&amp;nbsp; Less WebGL context switching?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately, how can I tell if I should switch to GraphicsLayer?&lt;/P&gt;&lt;P&gt;The best resource (which I didnt see when I originally chose FeatureLayers) is on the Layers docs page:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html"&gt;Layer | API Reference | ArcGIS API for JavaScript 4.10&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's a good summary, but I need that little bit more info!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Nathan.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 18:00:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/do-graphicslayers-use-webgl-or-only-featurelayers/m-p/460980#M42622</guid>
      <dc:creator>NathanSummers1</dc:creator>
      <dc:date>2019-01-21T18:00:57Z</dc:date>
    </item>
  </channel>
</rss>

