Versions Compared

Key

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

This setting is optional. The function of displaying the camera viewing angle on the map allows you to mark the area on the map that the camera displays on the surveillance monitor in real time.

Besides, when you select a camera with the configured viewing angle on the map, the numerical value of the absolute coordinates (the rotation angle) is displayed on top of the displayed sector (see Enabling object tracking on interactive map).

To configure the display of the camera viewing angle on the map, do the following:

  1. Open the Map Editor utility for the required layer (see Creating the layers of the interactive map).
  2. Add the Camera object icon on the layer (see Attaching objects to the layer of interactive map) or select the already attached Camera object.
  3. Open the Properties panel if it isn't displayed automatically (see Editing object properties using the Properties panel).
  4. On the Properties panel in the PTZ group, set the parameters for the viewing angle:
    1. Angle on map—the direction of the initial vector on the map in degrees.
    2. Telemetry deflection from zero—the real camera deflection from the zero position at the moment of parameter setup.
    3. Viewing angle—the value of the camera viewing sector in degrees.
    4. Viewing distance—the radius of the camera viewing sector.
    5. Color—the color of the displayed camera viewing sector.
    6. Nontransparency—the opacity of the displayed camera viewing sector.
    7. Invert pan—invert the panning direction of the camera viewing angle in case the camera sends the inverted pan direction data (for example, by clockwise turning, the camera informs about the counter-clockwise pan).
  5. Close the Map Editor utility.
  6. Click the Apply button on the settings panel of the Layer object.

Configuring the display of the camera viewing angle on the map is complete.

You can change the color of the sector limiting the viewing angle by using the script. The example of the color change command for the JScript is presented below:

Code Block
var msg = CreateMsg();
msg.SourceType = "MAP";
msg.Action = "OBJECT_ATTRIBUTE";

msg.SetParam("obj_type", "CAM");
msg.SetParam("obj_id", "1"); // Camera object identifier.
msg.SetParam("obj_action", "update_sector");
msg.SetParam("c_clr", "#AAFF0000"); // ARGB format. RGB without transparency can also be used.

DoReact(msg);