Class: Marker

bemap.Marker(coordinates, options)

Base class for marker.

Constructor

new Marker(coordinates, options)

Parameters:
Name Type Description
coordinates bemap.Coordinate in bemap.Coordinate.
options Object See below the available values.
Properties
Name Type Description
icon bemap.Icon Style of marker used by the renderer.
name String Name of marker.
properties Object custom object.
Source:

Members

(protected) callback :function

Type:
  • function
Source:

(protected) coordinate :bemap.Coordinate

Type:
Source:

(protected) events :Array

Type:
  • Array
Source:

(protected) icon :bemap.Icon

Type:
Source:

(protected) id :String

Type:
  • String
Source:

(protected) layer :Object

Type:
  • Object
Source:

(protected) map :Object

Type:
  • Object
Source:

(protected) name :String

Type:
  • String
Source:

(protected) native :Object

Type:
  • Object
Source:

(protected) properties :Object

Type:
  • Object
Source:

(protected) textStyle :String

Type:
  • String
Source:

Methods

(protected) draggable(callback, options) → {bemap.Listener}

Define the draggable capability for bemap.Marker.
Parameters:
Name Type Description
callback function Function will be called when the specified eventType is occur.
options object Options.
Properties
Name Type Description
layerFilter bemap.Layer set the bemap layer used as filter.
Source:
Returns:
bemap.listener.
Type
bemap.Listener

getCoordinate() → {bemap.Coordinate}

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

getIcon() → {bemap.Icon}

Return the bemap.Icon that define the style of the marker.
Source:
Returns:
Return the bemap.Icon that define the style of the marker.
Type
bemap.Icon

getId() → {String}

Return the id of the marker.
Source:
Returns:
Return the id of the marker.
Type
String

getName() → {String}

Return the name of the marker.
Source:
Returns:
Return the name of the marker.
Type
String

getProperties() → {String}

Return the properties of the marker.
Source:
Returns:
Return the properties of the marker.
Type
String

getTextStyle() → {bemap.TextStyle}

Return the bemap.TextStyle that define the style of text.
Source:
Returns:
Return the bemap.TextStyle that define the style of text.
Type
bemap.TextStyle

getTextStyle() → {bemap.TextStyle}

Return the bemap.TextStyle that define the style of text.
Source:
Returns:
Return the bemap.TextStyle that define the style of text.
Type
bemap.TextStyle

on(eventType, callback, options) → {bemap.Marker}

Set the listner when an specified eventType occur on bemap.Marker.
Parameters:
Name Type Description
eventType bemap.Map.EventType Event type.
callback function Function will be called when the specified eventType is occur.
options object options.
Source:
Returns:
this.
Type
bemap.Marker

remove() → {bemap.Marker}

Remove the Marker from the layer.
Source:
Returns:
this
Type
bemap.Marker

setCoordinate(coordinate) → {bemap.Marker}

Set the coordinates of the marker.
Parameters:
Name Type Description
coordinate bemap.Coordinate the new coordinates to set.
Source:
Returns:
this
Type
bemap.Marker

setIcon(icon) → {bemap.Marker}

Set the icon style of the marker.
Parameters:
Name Type Description
icon bemap.Icon the new icon style to set.
Source:
Returns:
this
Type
bemap.Marker

setId(id) → {bemap.Marker}

Define the id of marker
Parameters:
Name Type Description
id String the new id to set.
Source:
Returns:
this
Type
bemap.Marker

setName(name) → {bemap.Marker}

Define the name of polyline
Parameters:
Name Type Description
name String the new name to set.
Source:
Returns:
this
Type
bemap.Marker

setProperties(properties) → {bemap.Marker}

Define the properties of marker
Parameters:
Name Type Description
properties String the new properties to set.
Source:
Returns:
this
Type
bemap.Marker

setTextStyle(icon) → {bemap.Marker}

Set the text style of the marker.
Parameters:
Name Type Description
icon bemap.TextStyle the new text style to set.
Source:
Returns:
this
Type
bemap.Marker

setTextStyle(icon) → {bemap.MultiMarker}

Set the text style of the multimarker.
Parameters:
Name Type Description
icon bemap.TextStyle the new text style to set.
Source:
Returns:
this
Type
bemap.MultiMarker