ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Map functions
  • Properties specific to MapCircle variables
  • WLanguage functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The MapCircle type is used to define the characteristics of a circle to be drawn on the map displayed in a Map control. You can define and change the characteristics of this circle using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Ajoute un cercle dans le champ Carte
Cercle is MapCircle
Cercle.Center = Position
Cercle.Radius = 50
Cercle.LineColor = LightRed
Cercle.ActionClick = ProcClic
MapAddShape(CARTE_MaCarte, Cercle)

INTERNAL PROCEDURE ProcClic(c is MapCircle)
	ToastDisplay(StringBuild("Clic sur le cercle <%1>.", c.Name))
END
Properties

Properties specific to MapCircle variables

The following properties can be used to handle a circle:
Property nameType usedEffect
ActionClickProcedure nameName of the WLanguage procedure called when the user clicks the circle displayed in the Map control. This procedure has the following format:
PROCEDURE <Procedure name>(<Circle>)
where <Circle> is a MapCircle variable corresponding to the circle that the user clicked on.
If this property is not specified (or corresponds to an empty string ("")), no action will be performed on click.
Note: it is advisable to use global procedures. If the procedure is a local procedure, it is necessary to prefix the procedure name with the full name of the object to which the procedure belongs (e.g. for a local window procedure: "FEN_Fenêtre1.MaProcedure").
BackgroundColorColor, integer, Integer constantCircle background color. This color can correspond to:
Note: To change the fill opacity, write:
MaCarteCercle.CouleurFond.Opacité = 50
CentergeoPositionCenter of the circle.
DescriptionCharacter stringDescription of the shape, used to store additional information, for example.
New in version 2025
Extra
VariantAllows you to store advanced information without affecting the execution of the application. You can store values of any type (array, etc.). It is also possible to add members to the Extra property.
Example:
MyVariable.Extra.Info1 = Value
MyVariable.Extra[Info2] = Value2
MyVariable.Extra.Date = DateSys()
LineInteger constantLine style used for the circle outline:
  • ContinuousTrait (default value): Solid line.
  • DottedDash Dotted line.
  • TraitTiret Dashes.
  • TraitMixte Dotted and dashed lines.
LineColorColor, integer, Integer constantCircle outline color. This color can correspond to:
Name Character stringName of the shape (here, name of the circle). A name is automatically assigned when the variable is created. It can be modified, but it has to be unique if the shape is added to the Map control. This name can be used to delete the circle with MapDeleteShape.
RadiusRealRadius of the circle in meters. The default radius is 100 meters.
ThicknessIntegerLine thickness used for the circle outline.
The thickness is set to 2 by default.
ZOrderIntegerZ-order of the circle in relation to the other shapes in the Map control. Allows you to manage overlays.
A shape with a high Z-order will be drawn over a shape with a lower Z-order.
This property is set to 0 by default.
Remarks

WLanguage functions

The following WLanguage functions use MapCircle variables:
MapAddShapeAdds a new shape (polygon, line, circle) to the map displayed in a Map control.
MapDeleteShapeDeletes a shape drawn on the map displayed in an Map control.
MapModifyShapeModifies a shape drawn on the map displayed in a Map control.
Related Examples:
WD Extended Map Training (WINDEV): WD Extended Map
[ + ] This example shows the different features of the Map control in desktop (Windows) and mobile (Android, iOS) devices
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help