This setting is optional. The displaying of the camera viewing angle on the Map allows you to mark the area on the map which the camera displays on the Tracking Monitor in real time.
In addition, when you select a camera with a configured viewing angle display on the Map, the numerical value of the absolute coordinates (the rotation angle) is displayed on top of the viewing sector (see Enabling object tracking on interactive map).
To configure the camera viewing angle display on the Map, do the following:
Configuring the camera viewing angle display on the Map is completed.
The color of the camera viewing sector can be changed using the script. The example of a color change command for the JScript is presented below:
var msg = CreateMsg(); msg.SourceType = "MAP"; msg.Action = "OBJECT_ATTRIBUTE"; msg.SetParam("obj_type", "CAM"); msg.SetParam("obj_id", "1"); // Идентификатор объекта "Камера". msg.SetParam("obj_action", "update_sector"); msg.SetParam("c_clr", "#AAFF0000"); // ARGB формат. Можно просто RGB без прозрачности. DoReact(msg); |