# Class: Icon

## bemap.Icon(options)

Base class for icon.

## Constructor

#### new Icon(options)

##### Parameters:

Name | Type | Description
--- | --- | ---
`options` | object | See below the available values. ###### Properties
Name | Type | Description
--- | --- | ---
`src` | String | Source of the image. It can be an URL or an folder path.
`anchorX` | double | .
`anchorY` | double | .
`anchorXUnits` | String | Units of the anchorX.
`anchorYUnits` | String | Units of the anchorY.
`opacity` | float | a number between 0 and 1 to define the opacity of the icon. 1 to full opacity and 0 to full transparency.

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

### Members

#### (protected) anchorX :double

##### Type:

- double

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

#### (protected) anchorXUnits :String

##### Type:

- String

Source:
  - bemap-model/bemap-icon.js, line 61

#### (protected) anchorY :double

##### Type:

- double

Source:
  - bemap-model/bemap-icon.js, line 55

#### (protected) anchorYUnits

{String}

Source:
  - bemap-model/bemap-icon.js, line 67

#### (protected) height :double

##### Type:

- double

Source:
  - bemap-model/bemap-icon.js, line 43

#### (protected) native :object

##### Type:

- object

Source:
  - bemap-model/bemap-icon.js, line 25

#### (protected) opacity :float

##### Type:

- float

Source:
  - bemap-model/bemap-icon.js, line 73

#### (protected) scale :float

##### Type:

- float

Source:
  - bemap-model/bemap-icon.js, line 79

#### (protected) src :String

##### Type:

- String

Source:
  - bemap-model/bemap-icon.js, line 31

#### (protected) width :double

##### Type:

- double

Source:
  - bemap-model/bemap-icon.js, line 37

### Methods

#### getAnchorX() → {double}

Return the horizontale anchor of the image.

Source:
  - bemap-model/bemap-icon.js, line 144

##### Returns:

Return the horizontale anchor of the image.

Type
  double

#### getAnchorXUnits() → {String}

Return the units horizontale anchor of the image.

Source:
  - bemap-model/bemap-icon.js, line 182

##### Returns:

Return the units horizontale anchor of the image.

Type
  String

#### getAnchorY() → {double}

Return the verticale anchor of the image.

Source:
  - bemap-model/bemap-icon.js, line 163

##### Returns:

Return the verticale anchor of the image.

Type
  double

#### getAnchorYUnits() → {String}

Return the units verticale anchor of the image.

Source:
  - bemap-model/bemap-icon.js, line 201

##### Returns:

Return the units verticale anchor of the image.

Type
  String

#### getHeight() → {double}

Return the height of the image.

Source:
  - bemap-model/bemap-icon.js, line 125

##### Returns:

Return the height of the image.

Type
  double

#### getOpacity() → {float}

Return the opacity the image.

Source:
  - bemap-model/bemap-icon.js, line 220

##### Returns:

Return the opacity of the image.

Type
  float

#### getSrc() → {String}

Return the Source of the image.

Source:
  - bemap-model/bemap-icon.js, line 87

##### Returns:

Return the source of the image.

Type
  String

#### getWidth() → {double}

Return the width of the image.

Source:
  - bemap-model/bemap-icon.js, line 106

##### Returns:

Return the width of the image.

Type
  double

#### setAnchorX() → {bemap.Icon}

Set the horizontale anchor of the image.

Source:
  - bemap-model/bemap-icon.js, line 153

##### Returns:

Return this.

Type
  bemap.Icon

#### setAnchorXUnits() → {bemap.Icon}

Set the horizontale anchor units the image.

Source:
  - bemap-model/bemap-icon.js, line 191

##### Returns:

Return this.

Type
  bemap.Icon

#### setAnchorY() → {bemap.Icon}

Set the verticale anchor of the image.

Source:
  - bemap-model/bemap-icon.js, line 172

##### Returns:

Return this.

Type
  bemap.Icon

#### setAnchorYUnits() → {bemap.Icon}

Set the vertical anchor units the image.

Source:
  - bemap-model/bemap-icon.js, line 210

##### Returns:

Return this.

Type
  bemap.Icon

#### setHeight() → {bemap.Icon}

Set the height of the image.

Source:
  - bemap-model/bemap-icon.js, line 134

##### Returns:

Return this.

Type
  bemap.Icon

#### setOpacity() → {bemap.Icon}

Set the opacity of the image.

Source:
  - bemap-model/bemap-icon.js, line 229

##### Returns:

Return this.

Type
  bemap.Icon

#### setSrc() → {bemap.Icon}

Set the Source of the image.

Source:
  - bemap-model/bemap-icon.js, line 96

##### Returns:

Return this.

Type
  bemap.Icon

#### setWidth() → {bemap.Icon}

Set the width of the image.

Source:
  - bemap-model/bemap-icon.js, line 115

##### Returns:

Return this.

Type
  bemap.Icon