The base class for all the objects placed on the maps in a layers of EMAPI.VectorLayer type.
EMAPI. | The 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. | The constructor of a new instance of the EMAPI.Object class. |
destroy | Destroys object of EMAPI.Object class. |
setVisibility | Sets object visibility on the map. |
setPosition | Sets object position on the map. |
redraw | Draws object on the map. |
bringToFront | Moves the covered object over others objects. |
setProperties | Sets the object features. |
showInfo | Forces a window with information about the object. |
{EMAPI.LonLat} Coordinates of the centre point of the object.
{EMAPI.VectorLayer} Link to the layer where object is placed.
setPosition: function( lonLat )
Sets object position on the map.
lonLat | {EMAPI.LonLat} The EMAPI.LonLat object representing the geographical coordinates object position. |
Destroys object of EMAPI.Object class.
destroy: function()
Sets object visibility on the map.
setVisibility: function( visible )
Sets object position on the map.
setPosition: function( lonLat )
Draws object on the map.
redraw: function()
Moves the covered object over others objects.
bringToFront: function ()
Sets the object features.
setProperties: function( properties )
Forces a window with information about the object.
showInfo: function()