# Class: MapEvent

## bemap.MapEvent(options)

Base class for event.

## Constructor

#### new MapEvent(options)

##### Parameters:

Name | Type | Description
--- | --- | ---
`options` | object | Options object. ###### Properties
Name | Type | Description
--- | --- | ---
`native` | object | native object.
`map` | object | map object.
`bemapObject` | object | bemap object.
`x` | int | X coordinate in pixels.
`y` | int | Y coordinate in pixels.
`coordinate` | bemap.Coordinate | Coordinate.
`properties` | object | object can contains custom properties.

Source:
  - bemap-mapevent.js, line 19

### Members

#### (protected) bemapObject :bemap.Object

BeMap SDK object like bemap.Marker, bemap.Polyline, etc.

##### Type:

- bemap.Object

Source:
  - bemap-mapevent.js, line 41

#### (protected) coordinate :bemap.Coordinate

Coordinate of event (longitude and latitude).

##### Type:

- bemap.Coordinate

Source:
  - bemap-mapevent.js, line 62

#### (protected) map :bemap.Map

Map object that generated the event.

##### Type:

- bemap.Map

Source:
  - bemap-mapevent.js, line 34

#### (protected) native :Object

Native map browser event.

##### Type:

- Object

Source:
  - bemap-mapevent.js, line 27

#### (protected) properties :Object

##### Type:

- Object

Source:
  - bemap-mapevent.js, line 89

#### (protected) startCoordinate :bemap.Coordinate

Start coordinate before event (longitude and latitude).

##### Type:

- bemap.Coordinate

Source:
  - bemap-mapevent.js, line 83

#### (protected) startX :int

x coordinate before event in pixels.

##### Type:

- int

Source:
  - bemap-mapevent.js, line 69

#### (protected) startY :int

y coordinate before event in pixels.

##### Type:

- int

Source:
  - bemap-mapevent.js, line 76

#### (protected) x :int

x coordinate in pixels.

##### Type:

- int

Source:
  - bemap-mapevent.js, line 48

#### (protected) y :int

y coordinate in pixels.

##### Type:

- int

Source:
  - bemap-mapevent.js, line 55

### Methods

#### getCoordinate() → {bemap.Coordinate}

Return the bemap.Coordinate. See bemap.Coordinate.

Source:
  - bemap-mapevent.js, line 97

##### Returns:

Return the bemap.Coordinate. See bemap.Coordinate.

Type
  bemap.Coordinate