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
subobject named "Map
" and "Point
- The preconfiguration is created including the panel (PmPanel
object) functionality as a Web panel
Panel editor - object description and setup
" 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 contains two PmiRasterImage
items named map
. Both these items are connected to the same image of the map layer on the Image
page in the File
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
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
These configurators can be set before the preconfiguration is created:
|The name of created object||Name of the object created in the application object tree. This is a system name and must not contain empty string, diacritics, spaces and the first character must not be a number.|
|Enable as Web component||It 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 object||Path 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.