GIScene.Layer.Helper Class
A Helper Layer has a property isTangible = false. This helps to determine objects which shouldn't be reflected in ray intersections, e.g. during visibility analysis.
Constructor
GIScene.Layer.Helper
(
-
name
-
[config]
Parameters:
-
name
Stringthe layer name for display purposes
-
[config]
Object optionalthe layer configuration object
Item Index
Methods
Methods
disposeStyle
(
-
style
remove style, its material and textures from memory
Parameters:
-
style
GIScene.Style
getAttributeNames
()
Array(String)
Returns:
Array(String):
attributeNames
getObjectsBy
(
Array
-
callback
get Objects by a evaluation function which recursively tries to match the objects of the layer
Parameters:
-
callback
Function
Returns:
Array:
matches
removeStyle
(
-
style
remove an existing style from the layers style list
Parameters:
-
style
GIScene.Style
selectByAttributes
(
-
attributeName
-
operator
-
value
-
selectMode
set or modify the current layer selection by attribute query
Parameters:
-
attributeName
Stringmust be available in object.userData.gisceneAttributes -
operator
Stringdefines how to compare the given values with the object attributes -
value
Mixedthe values for the selection criteria -
selectMode
Stringcan be new,add,sub,intersect
Example:
{
"attributeName" : "attr_id",
"operator" : "IN", //"==","!=" .... TODO
"value" : [2393,1234],
"selectMode" : "new"
}
setOpacity
(
-
opacity
Sets the opacity value for the whole layer
Parameters:
-
opacity
Number
Events
addStyle
afterSetOverrideMaterial
beforeSetOverrideMaterial
changedvisibility
listener function will get the following event object as argument
Example:
eventObject = {
content:{
layer:{GIScene.Layer},
visibility:{Boolean}
}
}