Class: Layer

bemap.Layer()

Base class for layer.

Constructor

new Layer()

Parameters:
Name Type Description
options.
Source:

Members

(protected) base

Source:

(protected) map

Source:

(protected) name

Source:

(protected) native

Source:

(protected) options

Source:

(protected) transparent :Boolean

Type:
  • Boolean
Source:

(protected) visible

Source:

Methods

clear() → {bemap.Layer}

Remove all object from the layer.
Source:
Returns:
this.
Type
bemap.Layer

isVisible() → {boolean}

Return the visibility of the layer.
Source:
Returns:
visible.
Type
boolean

onGetFeatureInfo(options) → {bemap.Listener}

Set get feature info call back.
Parameters:
Name Type Description
options object options.
Properties
Name Type Description
beforeCallback function callback called at data reception and before display the popup.
afterCallback function callback called after display the popup.
Source:
Returns:
listener;
Type
bemap.Listener

remove() → {bemap.Layer}

Remove the layer from the map.
Source:
Returns:
this.
Type
bemap.Layer

setVisible() → {bemap.Layer}

Set the visibility of the layer.
Parameters:
Name Type Description
visible. boolean
Source:
Returns:
this;
Type
bemap.Layer