HSLayers.Layer.TreeLayer.Group (class)

HSLayers.Layer.TreeLayer.Group

class HSLayers.Layer.TreeLayer.Group()

Tree layer Group class

Properties

HSLayers.Layer.TreeLayer.Group.childs
Type :[Mixed] Groups or Layers (static)

HSLayers.Layer.TreeLayer.Group

childs list of layers and groups, as they come

HSLayers.Layer.TreeLayer.Group.events
Type :OpenLayers.Events (static)

HSLayers.Layer.TreeLayer.Group

events

HSLayers.Layer.TreeLayer.Group.groups
Type :[HSLayers.TreeLayer.Group] (static)

HSLayers.Layer.TreeLayer.Group

list of all groups

HSLayers.Layer.TreeLayer.Group.id
Type :String (static)

HSLayers.Layer.TreeLayer.Group

id of the group

HSLayers.Layer.TreeLayer.Group.layer
Type :HSLayers.Layer.TreeLayer (static)

HSLayers.Layer.TreeLayer.Group

parent layer object HSLayers.Layer.TreeLayer

HSLayers.Layer.TreeLayer.Group.layers
Type :[HSLayers.TreeLayer.Layer] (static)

HSLayers.Layer.TreeLayer.Group

list of child layers

HSLayers.Layer.TreeLayer.Group.name

HSLayers.Layer.TreeLayer.Group

name of the group, identificator

HSLayers.Layer.TreeLayer.Group.parentGroup
Type :HSLayers.TreeLayer.Group (static)

HSLayers.Layer.TreeLayer.Group

parent group

HSLayers.Layer.TreeLayer.Group.title
Type :String (static)

HSLayers.Layer.TreeLayer.Group

title of the group

HSLayers.Layer.TreeLayer.Group.visibility
Type :Boolean (static)

HSLayers.Layer.TreeLayer.Group

visibility indicator

Methods

HSLayers.Layer.TreeLayer.Group.cascade(fnc, scope, {Mixed})

cascade objects down with given function

Arguments:
  • fnc (Function) – function to be called
  • scope (Object) – of the function optional, default is this group
  • {Mixed}

    args arguments handed over to the function, optional

    Optional

HSLayers.Layer.TreeLayer.Group.bubble(fnc, scope, {Mixed})

bubble objects up function

Arguments:
  • fnc (Function) – function to be called
  • scope (Object) – of the function optional, default is this group
  • {Mixed}

    args arguments handed over to the function, optional

    Optional

HSLayers.Layer.TreeLayer.Group.toggleVisibility(visibility)

toggle visibility, throw the event

Arguments:
  • visibility (Boolean) – optional
HSLayers.Layer.TreeLayer.Group.foreachLayer(fnc, optional, {Mixed})

run given function for each layer

Arguments:
  • fnc (Function) –
  • optional, (Object) – default is this layer
  • {Mixed}

    args, optional

    Optional

HSLayers.Layer.TreeLayer.Group.addGroup(child)

add new child group

Arguments:
  • child (Object) – optional, default is this layer
HSLayers.Layer.TreeLayer.Group.setLayer(layer)

setLayer

Arguments:

Events

visibilitychanged
indicates change of the visibility