AtlasCT.com
User Manual v5.0

Marker

Inheritance: Shape > Marker

The Marker class is used to show a marker on the map.
The Marker class is based on the Shape class, and in order to add a marker on the map you should add the marker object to the map’s LayersManager object.

See on the examples page Use shapes -> Add external icon to map


Summary
Inheritance: Shape > Marker
The Marker constructor.
Returns the coordinate of the marker.
Returns the direction of the marker.
Returns the icon of the marker.
Sets a new coordinate to the marker.
Sets a new direction to the marker.
Sets a new icon to the marker.

Constructors

Marker

Marker(string id
Coordinate coordinate
Icon icon
string label
string hint
boolean isVisible
boolean isLabelVisible
int direction)

The Marker constructor.

Parameters

idThe id of the marker.
coordinateThe coordinate of the marker.
iconThe icon of the marker.
labelThe label of the marker.
hintThe hint of the marker.
isVisibleDetermine if the marker is visible.
isLabelVisibleDetermine if the label of the marker is visible.
directionThe direction of the marker.

Methods

getCoordinate

Coordinate getCoordinate()

Returns the coordinate of the marker.

Returns

The coordinate of the marker.

See Also

setCoordinate

getDirection

string getDirection()

Returns the direction of the marker.

Returns

The direction of the marker.

See Also

setDirection

getIcon

Icon getIcon()

Returns the icon of the marker.

Returns

The icon of the marker.

See Also

setIcon

setCoordinate

setCoordinate(Coordinate coordinate)

Sets a new coordinate to the marker.

Parameters

coordinateA new coordinate to the marker.

See Also

getCoordinate

setDirection

setDirection(string direction)

Sets a new direction to the marker.

Parameters

directionA new direction to the marker.

See Also

getDirection

setIcon

setIcon(Icon icon)

Sets a new icon to the marker.

Parameters

iconA new icon to the marker.

See Also

getIcon

The Shape class is used to define a shape (Marker, Polygon, Polyline, Circle) to be drawn on the map.
In order to add any shape on the map you should add the shape object to the map’s LayersManager object.

Marker(string id
Coordinate coordinate
Icon icon
string label
string hint
boolean isVisible
boolean isLabelVisible
int direction)
The Marker constructor.
setCoordinate(Coordinate coordinate)
Sets a new coordinate to the marker.
Coordinate getCoordinate()
Returns the coordinate of the marker.
setIcon(Icon icon)
Sets a new icon to the marker.
Icon getIcon()
Returns the icon of the marker.
setDirection(string direction)
Sets a new direction to the marker.
string getDirection()
Returns the direction of the marker.
Inheritance: Layer > LayersCollection > LayersManager
This is the base class of the provided coordinates classes.
The Icon class is used to set the graphic form of the Marker object.
You can use 3 types of icons that inherit from this class: