| | |
Property name | Type used | Effect |
---|
ActionClick | Procedure name | Name of the WLanguage procedure called when the user clicks the marker displayed in the Map control. This procedure has the following format:
PROCEDURE <Procedure name>(<Marker>)
where <Marker> is a Marker variable corresponding to the marker that was clicked by the user. If this property corresponds to an empty string (""), no action will be performed on click. Remark: it is recommended to use global procedures. If the procedure is local, its name must be prefixed by the full name of the object to which the procedure belongs (example for a local window procedure: "WIN_Window1.MyProcedure"). Versions 20 and later New in version 20 |
Versions 26 and laterActionClickPopup New in version 26ActionClickPopup ActionClickPopup | Character string | Name of the WLanguage procedure called when the user clicks the marker popup. This procedure has the following format:
PROCEDURE <Procedure name>(<Marker>)
where <Marker> is a Marker variable corresponding to the marker associated with the popup. If this property corresponds to an empty string (""), no action will be performed on click. |
Versions 26 and laterActionDrag New in version 26ActionDrag ActionDrag | Character string | Name of the WLanguage procedure called when the user moves the marker displayed in the Map control (if the Movable property is set to True). This procedure has the following format:
PROCEDURE <Procedure name>(<Marker>)
where <Marker> is a Marker variable corresponding to the moved marker. This procedure is called when the user releases the marker. If this property corresponds to an empty string (""), no action will be performed. |
Versions 21 and laterAlignment New in version 21Alignment Alignment | Integer constant | Mode for aligning the marker when it is displayed on a map: - mkBottom: Marker displayed at the bottom of the position.
- mkCenter: Marker displayed on the position.
- mkRight: Marker displayed on the right of the position.
- mkLeft: Marker displayed on the left of the position.
- mkTop: Marker displayed at the top of the position.
|
Versions 26 and laterZOrder New in version 26ZOrder ZOrder | Integer | Z-order of the marker in relation to the other markers in the Map control. Allows you to manage overlays. A marker with a high z-order will be drawn over a marker with a lower z-order. This property is set to 0 by default. |
Versions 26 and laterWithPopup New in version 26WithPopup WithPopup | Boolean | - True if a popup can be displayed when the marker is clicked on,
- False otherwise. The popup displays the name (Name property) and the description of the marker (Description property).
It is possible to customize the popup with the Property InternalPagePopup or InternalWindowPopup. |
Versions 26 and laterCluster New in version 26Cluster Cluster | Boolean | - True if the marker is to be grouped in a cluster if necessary,
- False otherwise.
Remark: A new optional event is available: "Grouping of markers". - This event is run each time a marker cluster is created or modified on the Map control.
- It takes an array of Marker variables as parameter. This array corresponds to the markers in the cluster.
- This event can return an image or a MarkerImage variable that will be used to represent the cluster on the map. If this event does not return a value (or returns an empty string), the cluster will be displayed in default mode.
|
Versions 26 and laterMoveable New in version 26Moveable Moveable | Boolean | - True if the marker can be moved by the user (Drag and Drop),
- False otherwise.
Remark: If the marker is moveable, a new optional event is available: "Move marker". This event takes as parameter the Marker variable associated with the moved marker. The geographic position associated with the marker is automatically updated. |
Description | Character string | Description of the marker, used for example to store the address corresponding to the position of the marker. Versions 26 and laterThe text of this description is used in the marker popup. New in version 26The text of this description is used in the marker popup. The text of this description is used in the marker popup.This property is optional. |
Image | Character string or MarkerImage variable | - Path of the image corresponding to the icon associated with the marker.
Versions 26 and laterMarkerImage variable used to customize the marker image. New in version 26MarkerImage variable used to customize the marker image. MarkerImage variable used to customize the marker image. If this property is not specified, the default image of the Map control will be used. This image can be specified in the "General" tab of the control description window. Remark: On the map, the icon associated with the marker will be displayed just above the specified position. |
Name | Character string | Name of the marker. Remarks: - This property is optional: if no name is specified, a random name is associated with the marker.
Versions 26 and laterIf a popup is displayed, it will display this name and the marker description. New in version 26If a popup is displayed, it will display this name and the marker description. If a popup is displayed, it will display this name and the marker description.- When adding a marker named like an existing marker, MapAddMarker fails: the marker is not added.
|
Versions 26 and laterRemark New in version 26Remark Remark | Any type | Used to store additional information (not be visible to the user) about the marker. |
Versions 26 and laterOpacity New in version 26Opacity Opacity | Integer | Percentage of opacity of the marker on the Map control. |
Position | geoPosition variable | Geographical position (latitude and longitude) at which the marker must be displayed. If no position is associated with the marker, the Position property will return NULL |