A style that can be used to stroke the outline of a shape with complex patterns.
A complex stroked line style is a combination of 3 layers of patterns:
Differences in complex stroked lines on a WebGLMap and a non-WebGLMap
Shader compilation in WebGL
When using a WebGLMap, keep in mind that every unique ComplexStrokedLineStyle results in new GPU shaders being compiled. If you use a lot of different ComplexStrokedLineStyle's in your application, it might take a while before all shaders are compiled. The more complex the style is, the longer the compilation will take. Once a shader is compiled, it is re-used across multiple GeoCanvas.drawShape calls. Re-submitting the same style multiple times, does not trigger a re-compilation.
Extruded shapes in 3D
ComplexStrokedLineStyle does not work on extruded lines and shapes on a 3D map. It does work on extruded shapes and lines on a 2D map. Note that for extruded shapes on a 2D map, only the base shape of the extruded shape is visualized.
The usage of complex stroked lines on a WebGLMap is prone to break on Internet Explorer. LuciadRIA generates GPU shaders based on the ComplexStrokedLineStyle. If these shaders become too complex for Internet Explorer to handle (too large or too much branching), the browser can become unresponsive. Because of those known issues, we do not recommend using complex stroked lines on a WebGLMap in Internet Explorer. As an alternative, you can use a non-WebGLMap or a simple LineStyle in Internet Explorer.
rotateUp in WebGL
PatternFactory.icon have a 'rotateUp' option.
This option guarantees that the text or icon is always rotated upwards. This increases legibility of the text or icon.
The device running the application, needs to support float textures for this option to work on a WebGLMap.
If the device does not support float textures, this option is ignored, and the text/icon will not be rotated up.
To check if float textures are supported, open the "device support" sample on the device.
rotateUp will always work on a non-WebGL Map.