Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The MAP object sends events presented in the table.   Procedure is started when the corresponding event appears. Format of events procedure for the map:

...

EventDescription
LAYER_ACTIVATEDLayer activation. This event is received when a Layer is selected on the Map. The layer ID is put into the obj_id<> parameter.
ACTIVATE_OBJECTObject activation. The event is received when an object is selected (activated) on the map.

Parameters:

obj_type <>  object type

user_id<> – user ID
obj_id <>  object ID
type_of_display <>  display type; possible values:

  • IMAGE  image
  • IMAGE_AND_INDICATOR  image and indicator
  • TEXT – text
  • LINE  line
  • POLYGON  polygon
  • ELIPSIS  ellipse
  • TITLE  the name of the object

...

Command

Parameters

Description

SET_TOPMOST – set topmost

-

-

SET_NOTOPMOST – cancel topmost

-

-

HIDE_OBJECT – Hide/show object icon on the map

objtype<>

Object ID. Can be left empty.   If the object type is not set, then objects of all types are hidden/shown.

objid<>

Object ID. Can be left empty.  If If the ID is not set, then all objects of specified type are hidden/shown.

hide<>

0 – objects are shown on the map.

1 – objects are hidden on the map.

SET_OBJECT_GEOMETRY – set object location on the map





objtype<>

Object type.

objid<>

Object ID.

x<>

New coordinate of the top left corner of the object icon on the map layer in pixels along the X axis.

y<>

New coordinate of the top left corner of the object icon on the map layer in pixels along the Y axis.

exclude_children<>

By default, when using the SET_OBJECT_GEOMETRY reaction, when moving the object icons, the names of these objects (child objects) also move. If you pass the exclude_children <1> parameter in the reaction, then the object is moved separately from the children, that is, without its name.

INSCRIBE – inscribe to window--
SHOW_MINIMAP – show a minimapx<>The coordinate of the upper-left corner of the minimap along the X axis in pixels.
y<>The coordinate of the upper-left corner of the minimap along the Y axis in pixels.
w<>Width of minimap in pixels.
h<>Height of minimap in pixels.
monitor<>Monitor ID.
__slave_id<>Net name.
SET_ZOOM - set Map scale.zoom<>Map scale ratio.

...