Replacing SVG with WebGL

184
1
11-14-2019 10:41 AM
Highlighted
New Contributor

In relation to this post Canvas vs SVG in 4.10 API  and the related release notes on v4.9 on using WebGL ArcGIS API 4.9 for JavaScript: What’s new (September 2018)  there is a mention of a Flag that needs to be set in order to use the SVG rendering engine instead of the new default WebGL. However I am not able to find any reference in the documentation on how to set up the app for this.

Secondly, are there any tutorials or examples on building a real world marker symbol in WebGL or any good sources on changing an existing SVG marker into a WebGL one?

Reply
0 Kudos
1 Reply
Highlighted
Esri Contributor

Hi there, 

Starting at version 4.10, WebGL is used to draw all layers in JS API. So there is no flag to switch between webgl and svg. 

We have lots of web symbols you can use. Please take a look at 2D web symbols and 3D symbols

Also there are a couple of samples that show you how to create custom webgl objects to the map. 

Custom WebGL layer view | ArcGIS API for JavaScript 4.13 

Animated lines with WebGL | ArcGIS API for JavaScript 4.13 

-Undral

Reply
0 Kudos