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 after pressing the Insert
key after selecting the object) and is included in the group: " / Technology / Maps"
This preconfiguration can be created in the object: PmaFolder or PmaRoot.
- The preconfiguration creates an object of the PmaFolder
type with PmaPanel
subobjects named "Map
" and "Point
- The preconfiguration is created including the panel (object of the PmaPanel
type) is functional also a Web panel
Editor of PmaPanel graphics - object description and setup
" panel is used only for demo purposes. In the preconfiguration framework, it is open by the CreateView
method with point
parameter in the onKeyPress
event of the active point in the Map
" panel contains two PmgRasterImage
objects named map
. Both these objects are connected to the same image of the map layer on the "Image
" tab in the "File
The following variables are defined on the "Variables" tab of the Pmg object map:
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 Pmg
objects and also in the overview ma mapview
Active points on map are solved by PmgInstance
, 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 tree of Pma objects. The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.|
|Enable as Web component||Specifies whether this object has to be registered as a Web server component |
After the preconfiguration is created, the "PmaPanel > Web server > Enable as Web component" configurator will be set to this value.
|PmaWeb object||Path in the tree of Pma objects to the object PmaWeb, PmaWebFolder or PmaWebLang where the registration is carried out. |
Macro expression can be used for input (it is evaluated after starting the application).
After the preconfiguration is created, the "PmaPanel > Web server > PmaWeb object" configurator will be set to this value.