Preconfiguration "Map with active points"

Active points on map layer with zooming capability.
This preconfiguration can be activated when creating a new object (e.g. by "New object" in the local object menu or by pressing the Insert key after selecting the object) and is included in the group: " / Technology / Maps".

This preconfiguration can be used with the objects: PmFolder or PmRoot.

- Preconfiguration creates an object of type PmFolder with PmPanel subobject named "Map" and "Point". The scripts in panels are written in JavaScript.
- The preconfiguration is created including the panel (PmPanel object) functionality as a Web panel.
Panel editor - object description and setup
The "Point" panel is used only for demo purposes. In the preconfiguration framework, it is open by the OpenView method with point parameter in the onKeyPress event of the active point in the Map panel.
The "Map" panel contains two PmiRasterImage items named map and mapview. Both these items are connected to the same image of the map layer on the Image page in the File configurator.

The following variables are defined on the Variables page of the map graphic item:

nScroll: The value defines the zooming ratio of the map
clipX, clipY: Position of the upper left corner when moving on the map. (the default values are not set)
clipDx, clipDy: Cut out size setting for map movement. The default values are panel dimensions Dx and Dy (in pixels).
bmpDx, bmpDy: These are constants that must be set and represent the real panel dimensions Dx and Dy (in pixels).
Movement and zooming in the map is solved in the onMousePress event in individual control items and also in the overview ma mapview.
Active points on map are solved by PmiInstance, where there are following variables on the Variables page:
title: Point name (required)
x, y: The point position on map in full view (required)
The action connected with click on map active point is defined in Prototype editing, in the onKeyPress event.
These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the application object tree. This is a system name and must not contain diacritics, empty string, spaces and the first character must not be a number.

Default: "Map"

Enable as Web componentIt indicates if this object has to be registered as a Web server component

After this preconfiguration is created, the configurator is se to: PmPanel > Web server > Enable as Web component.

PmWeb objectPath in the objects tree to the PmWeb, PmWebFolder or PmWebLang object where the registration is carried out.

Macro expression can be used for input (it is evaluated while the application is launching).

After this preconfiguration is created, the configurator is se to: PmPanel > Web server > PmWeb object.

PROMOTIC 8.3.20 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice