|
|
|
|
- Properties specific to the description of MarkerImage variables
MarkerImage (Type of variable) In french: MarqueurImage
The MarkerImage type is used to customize the image associated with a marker or a marker cluster displayed in a Map control. The characteristics of this image can be defined and changed using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
MyImg is MarkerImage MyImg.Size = 60 MyImg.BackgroundColor = LightGreen MyImg.Text = 100 MyMarker is Marker MyMarker.Position = MyLocation MyMarker.Image = MyImg MapAddMarker(MAP_Map1, MyMarker)
Remarks Properties specific to the description of MarkerImage variables The following properties can be used to handle the marker image: | | | Property name | Type used | Effect |
---|
BackgroundColor | Color, integer, constant | Circle outline. This color can correspond to:Remark: To change the opacity of the fill, you can write:
MyMarkerImage.BackgroundColor.Opacity = 50
Default Color: black. | Color | Color, integer, constant | Color of the shape outline and marker caption. This color can correspond to:Default Color: black. | Shape | Integer constant | Shape to be represented with one of the following constants: - shapeSquare: Square shape.
- shapeRoundedSquare: Square shape with rounded corners.
- shapeCircle (default value): Round shape.
| Size | Integer | Shape size (radius for a circle, side for a square), in pixels. | Text | Character string | Caption to be displayed in the shape. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|