# Class: Layer

## bemap.Layer()

Base class for layer.

## Constructor

#### new Layer()

##### Parameters:

Name | Type | Description
--- | --- | ---
`options.` |  |

Source:
  - bemap-model/bemap-layer.js, line 12

### Members

#### (protected) base

Source:
  - bemap-model/bemap-layer.js, line 38

#### (protected) map

Source:
  - bemap-model/bemap-layer.js, line 23

#### (protected) name

Source:
  - bemap-model/bemap-layer.js, line 33

#### (protected) native

Source:
  - bemap-model/bemap-layer.js, line 18

#### (protected) options

Source:
  - bemap-model/bemap-layer.js, line 49

#### (protected) transparent :Boolean

##### Type:

- Boolean

Source:
  - bemap-model/bemap-layer.js, line 44

#### (protected) visible

Source:
  - bemap-model/bemap-layer.js, line 28

### Methods

#### clear() → {bemap.Layer}

Remove all object from the layer.

Source:
  - bemap-model/bemap-layer.js, line 150

##### Returns:

this.

Type
  bemap.Layer

#### isVisible() → {boolean}

Return the visibility of the layer.

Source:
  - bemap-model/bemap-layer.js, line 174

##### 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:
  - bemap-model/bemap-layer.js, line 186

##### Returns:

listener;

Type
  bemap.Listener

#### remove() → {bemap.Layer}

Remove the layer from the map.

Source:
  - bemap-model/bemap-layer.js, line 139

##### Returns:

this.

Type
  bemap.Layer

#### setVisible() → {bemap.Layer}

Set the visibility of the layer.

##### Parameters:

Name | Type | Description
--- | --- | ---
`visible.` | boolean |

Source:
  - bemap-model/bemap-layer.js, line 162

##### Returns:

this;

Type
  bemap.Layer