EMAPI.Object

The base class for all the objects placed on the maps in a layers of EMAPI.VectorLayer type.

Summary
EMAPI.ObjectThe base class for all the objects placed on the maps in a layers of EMAPI.VectorLayer type.
Properties
name{String} The name of the object shown in the information window and optionally on the map.
lonLat{EMAPI.LonLat} Coordinates of the centre point of the object.
attributes{Object} Additional parameters of the object.
fontColor{String} Hexadecimal font colour for the label with the name of the object on the map (default #ff0000).
fontSize{String} The font size for the label with the name of the object on the map 12px).
fontFamily{String} Font name for the label with the name of the object on the map (default Courier New).
fontWeight{String} The thickness of the font for the label with the name of the object on the map (default bold).
labelVisible{Boolean} Information about visibility of the object name on the map (default false).
labelVisible{Boolean} Information about the visibility of the object on the map (default is true).
labelType{String} Visualisation type of the object label, one of the collection values.
labelXOffset{Integer} Additional horizontal shift of the label’s name (default is 0).
labelYOffset{Integer} Additional vertical shift of the label’s name (default is 15).
innerHTML{String} Descriptive content of object in HTML format.
moveable{Boolean} Information about the possibility of moving an object on the map (default is true).
visible{Boolean} Information about the visibility of the object on the map (default is true).
clickable{Boolean} Information about the possibility of selecting object on the map (default true).
autoInfo{Boolean} Information about the automatic triggering of the object information window on a map if you rest the mouse cursor on it (default is true).
popupXOffset{Integer} Additional horizontal shift of information window (default 0)
popupYOffset{Integer} Additional vertical shift of information window (default 0)
layer{EMAPI.VectorLayer} Link to the layer where object is placed.
Functions
EMAPI.ObjectThe constructor of a new instance of the EMAPI.Object class.
destroyDestroys object of EMAPI.Object class.
setVisibilitySets object visibility on the map.
setPositionSets object position on the map.
redrawDraws object on the map.
bringToFrontMoves the covered object over others objects.
setPropertiesSets the object features.
showInfoForces a window with information about the object.

Properties

name

{String} The name of the object shown in the information window and optionally on the map.

lonLat

{EMAPI.LonLat} Coordinates of the centre point of the object.

attributes

{Object} Additional parameters of the object.

fontColor

{String} Hexadecimal font colour for the label with the name of the object on the map (default #ff0000).

fontSize

{String} The font size for the label with the name of the object on the map 12px).

fontFamily

{String} Font name for the label with the name of the object on the map (default Courier New).

fontWeight

{String} The thickness of the font for the label with the name of the object on the map (default bold).

labelVisible

{Boolean} Information about visibility of the object name on the map (default false).

labelVisible

{Boolean} Information about the visibility of the object on the map (default is true).

labelType

{String} Visualisation type of the object label, one of the collection values.  [none | border (default border)]

labelXOffset

{Integer} Additional horizontal shift of the label’s name (default is 0).

labelYOffset

{Integer} Additional vertical shift of the label’s name (default is 15).

innerHTML

{String} Descriptive content of object in HTML format.

moveable

{Boolean} Information about the possibility of moving an object on the map (default is true).

visible

{Boolean} Information about the visibility of the object on the map (default is true).

clickable

{Boolean} Information about the possibility of selecting object on the map (default true).

autoInfo

{Boolean} Information about the automatic triggering of the object information window on a map if you rest the mouse cursor on it (default is true).

popupXOffset

{Integer} Additional horizontal shift of information window (default 0)

popupYOffset

{Integer} Additional vertical shift of information window (default 0)

layer

{EMAPI.VectorLayer} Link to the layer where object is placed.

Functions

EMAPI.Object

The constructor of a new instance of the EMAPI.Object class.

Parameters

options{Object} The object with additional parameters of the class instance.

destroy

destroy: function()

Destroys object of EMAPI.Object class.

setVisibility

setVisibility: function(visible)

Sets object visibility on the map.

Parameters

visible{Boolean} Information about object visibility.

setPosition

setPosition: function(lonLat)

Sets object position on the map.

Parameters

lonLat{EMAPI.LonLat} The EMAPI.LonLat object representing the geographical coordinates object position.

redraw

redraw: function()

Draws object on the map.

bringToFront

bringToFront: function ()

Moves the covered object over others objects.

setProperties

setProperties: function(properties)

Sets the object features.

Parameters

properties{Object} The object with the object parameters.

showInfo

showInfo: function()

Forces a window with information about the object.

An additional layer of objects applied to the map.
A class representing the geographic coordinates in the form of latitude and longitude.
destroy: function()
Destroys object of EMAPI.Object class.
setVisibility: function(visible)
Sets object visibility on the map.
setPosition: function(lonLat)
Sets object position on the map.
redraw: function()
Draws object on the map.
bringToFront: function ()
Moves the covered object over others objects.
setProperties: function(properties)
Sets the object features.
showInfo: function()
Forces a window with information about the object.
Close