<?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: Is HTML5 canvas-driven layers part of the ArcGIS javascript toolkit's future? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-html5-canvas-driven-layers-part-of-the-arcgis/m-p/564351#M52666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; I tried it out and it worked.&amp;nbsp; Though when panning the map the canvas layer didn't redraw at the same time as the base map, which was disconcerting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There was no obvious performance improvement over svg in my one test, though I didn't try to measure carefully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jan 2012 12:17:04 GMT</pubDate>
    <dc:creator>RexBradford</dc:creator>
    <dc:date>2012-01-27T12:17:04Z</dc:date>
    <item>
      <title>Is HTML5 canvas-driven layers part of the ArcGIS javascript toolkit's future?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-html5-canvas-driven-layers-part-of-the-arcgis/m-p/564348#M52663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm just curious if there are any plans to use HTML5 &amp;lt;canvas&amp;gt; elements as an option in layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am exploring creating a custom "feature layer" using a &amp;lt;canvas&amp;gt; overlaid on the map because in my admittedly informal testing it seems much faster for drawing lots of small marker-type images (i.e., a couple of thousand), compared to doing them in a Graphics layer.&amp;nbsp; Complications of this "outside the toolkit" approach include layer stacking (always on top is all I need, but...) and proper mouse event handling (i.e., routing events not handled by the &amp;lt;canvas&amp;gt; layer to the underlying map layers).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously this would require HTML5 browsers, which doesn't include IE 7/8 without use of far slower compatibility add-on libraries, but still it seems like a nice option to have in the toolkit - i.e., if the toolkit could use &amp;lt;canvas&amp;gt; rather than svg optionally for the whole stack of layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any plans or tentative plans or experiments in this direction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rex Bradford&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Direct Relief International&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 17:55:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-html5-canvas-driven-layers-part-of-the-arcgis/m-p/564348#M52663</guid>
      <dc:creator>RexBradford</dc:creator>
      <dc:date>2012-01-19T17:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is HTML5 canvas-driven layers part of the ArcGIS javascript toolkit's future?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-html5-canvas-driven-layers-part-of-the-arcgis/m-p/564349#M52664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can already do it! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since graphics layers (and feature layers) use dojox.gfx to draw shapes, you can explicitly tell dojo to use canvas. This is as simple as specifying canvas for gfxrenderer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dojoConfig = { 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "gfxRenderer": "canvas",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "isDebug": true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "parseOnLoad": true 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've done some testing with this and didn't see huge gains over using SVG. YMMV.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:19:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-html5-canvas-driven-layers-part-of-the-arcgis/m-p/564349#M52664</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2021-12-12T00:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is HTML5 canvas-driven layers part of the ArcGIS javascript toolkit's future?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-html5-canvas-driven-layers-part-of-the-arcgis/m-p/564350#M52665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only thing that means is that dojo's implementation of drawing on canvas is slow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 14:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-html5-canvas-driven-layers-part-of-the-arcgis/m-p/564350#M52665</guid>
      <dc:creator>DonnyVelazquez</dc:creator>
      <dc:date>2012-01-25T14:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is HTML5 canvas-driven layers part of the ArcGIS javascript toolkit's future?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-html5-canvas-driven-layers-part-of-the-arcgis/m-p/564351#M52666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; I tried it out and it worked.&amp;nbsp; Though when panning the map the canvas layer didn't redraw at the same time as the base map, which was disconcerting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There was no obvious performance improvement over svg in my one test, though I didn't try to measure carefully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 12:17:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-html5-canvas-driven-layers-part-of-the-arcgis/m-p/564351#M52666</guid>
      <dc:creator>RexBradford</dc:creator>
      <dc:date>2012-01-27T12:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is HTML5 canvas-driven layers part of the ArcGIS javascript toolkit's future?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-html5-canvas-driven-layers-part-of-the-arcgis/m-p/564352#M52667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hill,I am doing this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do you have a demo about "Is HTML5 canvas-driven layers part of the ArcGIS javascript toolkit's future?" .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 04:55:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-html5-canvas-driven-layers-part-of-the-arcgis/m-p/564352#M52667</guid>
      <dc:creator>mingchunfan</dc:creator>
      <dc:date>2013-10-31T04:55:57Z</dc:date>
    </item>
  </channel>
</rss>

