API Docs for: 1.0.2
Show:

GIScene.Style Class

Defined in: GIScene\Style.js:1
Module: GIScene

This class describes a style object with a name, title, material and definitions on which objects of a layer the style should be applied

Constructor

GIScene.Style

(
  • config
)

Defined in GIScene\Style.js:1

Parameters:

  • config Object

Example:

    var style = new GIScene.Style({
        name  :     'myStyle1'                      // [optional] should be unique
        title : 'My Style No. 1',                   // something nice to display
        material : new THREE.MeshBasicMaterial(),   // the material
        rootObjectKeyAttribute  : 'geom_id',        // [optional]
        rootObjectKeyValues     : [22, 24, 42, 57], // [optional]
        recursive : true                            // [optional] if all descendants should be styled the same way
    });

Item Index