PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV, WEBDEV and WINDEV Mobile 26 feature!
  • Properties specific to the description of MapCircle variables
  • WLanguage functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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. The characteristics of this circle can be defined and modified using different WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Example
// Add a circle to the Map control
Circle is MapCircle
Circle.Center = Position
Circle.Radius = 50
Circle.LineColor = LightRed
Circle.ActionClick = ClickProc
MapAddShape(MAP_MyMap, Circle)
 
INTERNAL PROCEDURE ClickProc(c is MapCircle)
ToastDisplay(StringBuild("Click on the <%1> circle.", c.Name))
END
Remarks

Properties specific to the description of 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.
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").
WEBDEV - Server codeWEBDEV - Browser code This procedure can be a Browser or Server procedure.
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.
CentergeoPositionCenter of the circle.
BackgroundColorColor, integer, Integer constantCircle background color. This color can correspond to:
Remark: To change the opacity of the fill, you can write:
MyMapCircle.BackgroundColor.Opacity = 50
LineColorColor, integer, Integer constantCircle outline color. This color can correspond to:
DescriptionCharacter stringDescription of the shape, used to store additional information, for example.
ThicknessIntegerLine thickness used for the circle outline.
The thickness is set to 2 by default.
NameCharacter 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 metres. The default radius is 100 meters.
LineInteger constantLine style used for the circle outline:
  • LineSolid (default value): Solid line.
  • LineDotted: Dots.
  • LineDash: Dashes.
  • LineDotAndDash: Dots and dashes.

WLanguage functions

The following WLanguage functions are used to handle MapCircle variables:
Versions 26 and later
MapAddShape
New in version 26
MapAddShape
MapAddShape
Adds a new shape (polygon, line, circle) to the map displayed in a Map control.
Versions 26 and later
MapDeleteShape
New in version 26
MapDeleteShape
MapDeleteShape
Deletes a shape drawn on the map displayed in an Map control.
Versions 26 and later
MapModifyShape
New in version 26
MapModifyShape
MapModifyShape
Modifies a shape drawn on the map displayed in a Map control.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment