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:

Members

(protected) bemapObject :bemap.Object

BeMap SDK object like bemap.Marker, bemap.Polyline, etc.
Type:
Source:

(protected) coordinate :bemap.Coordinate

Coordinate of event (longitude and latitude).
Type:
Source:

(protected) map :bemap.Map

Map object that generated the event.
Type:
Source:

(protected) native :Object

Native map browser event.
Type:
  • Object
Source:

(protected) properties :Object

Type:
  • Object
Source:

(protected) startCoordinate :bemap.Coordinate

Start coordinate before event (longitude and latitude).
Type:
Source:

(protected) startX :int

x coordinate before event in pixels.
Type:
  • int
Source:

(protected) startY :int

y coordinate before event in pixels.
Type:
  • int
Source:

(protected) x :int

x coordinate in pixels.
Type:
  • int
Source:

(protected) y :int

y coordinate in pixels.
Type:
  • int
Source:

Methods

getCoordinate() → {bemap.Coordinate}

Return the bemap.Coordinate. See bemap.Coordinate.
Source:
Returns:
Return the bemap.Coordinate. See bemap.Coordinate.
Type
bemap.Coordinate