AtlasCT.com
User Manual v5.0

Icon

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:

In order to add a marker on the map you should attach one of the above objects to the marker you’d like to add to the map.

See on the examples page how to add external icons to the map: Use shapes -> Add external icon to map


Summary
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:
The Icon constructor.
Set the icon counter to be disabled.
Set the icon counter to be enabled.
Returns the icon’s counter color (In hex format: XXXXXX).
Returns the icon’s counter offset position.
Returns the icon’s counter size (in pixels).
Set the icon’s counter color (In hex format: XXXXXX).
Set the icon’s counter offset position.
Set the icon’s counter font size (in pixels).

Constructors

Icon

Icon()

The Icon constructor.

disableCounter

disableCounter()

Set the icon counter to be disabled.  The icon counter is used to show a running number on the icon, relative the insert ordering of the markers above the map.  On the first marker that the icon is attached to, the number 1 will be appeared, on the second the number 2 and so on.

enableCounter

enableCounter()

Set the icon counter to be enabled.  The icon counter is used to show a running number on the icon, relative the insert ordering of the markers above the map.  On the first marker that the icon is attached to, the number 1 will be appeared, on the second the number 2 and so on.

getCounterColor

string getCounterColor()

Returns the icon’s counter color (In hex format: XXXXXX).

Returns

The icon’s counter color (In hex format: XXXXXX).

See Also

enableCounter, setCounterColor

getCounterOffset

ScreenPoint getCounterOffset()

Returns the icon’s counter offset position.  The offest position is used to determine the counter position relative to the icon.

Returns

The icon’s counter offset position.

See Also

enableCounter, getCounterOffset

getCounterSize

int getCounterSize()

Returns the icon’s counter size (in pixels).

Returns

The icon’s counter size (in pixels).

See Also

enableCounter, setCounterSize

setCounterColor

setCounterColor(string counterColor)

Set the icon’s counter color (In hex format: XXXXXX).

Parameters

counterColorthe icon’s counter color (In hex format: XXXXXX).

See Also

enableCounter, getCounterColor

setCounterOffset

setCounterOffset(ScreenPoint counterOffset)

Set the icon’s counter offset position.  The offest position is used to determine the counter position relative to the icon.

Parameters

counterOffsetthe icon’s counter offset position.

See Also

enableCounter, setCounterOffset

setCounterSize

setCounterSize(int counterSize)

Set the icon’s counter font size (in pixels).

Parameters

counterSizethe icon’s counter font size (in pixels).

See Also

enableCounter, getCounterSize

Inheritance: Shape > Marker
Icon()
The Icon constructor.
enableCounter()
Set the icon counter to be enabled.
disableCounter()
Set the icon counter to be disabled.
setCounterSize(int counterSize)
Set the icon’s counter font size (in pixels).
int getCounterSize()
Returns the icon’s counter size (in pixels).
setCounterColor(string counterColor)
Set the icon’s counter color (In hex format: XXXXXX).
string getCounterColor()
Returns the icon’s counter color (In hex format: XXXXXX).
setCounterOffset(ScreenPoint counterOffset)
Set the icon’s counter offset position.
ScreenPoint getCounterOffset()
Returns the icon’s counter offset position.
Inheritance: Icon > ExternalIcon
Inheritance: Icon > RectangleIcon
Inheritance: Icon > CircleIcon
The ScreenPoint class represent a point on the viewport of the map by an X and Y coordinate in pixels.