PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV, WEBDEV and WINDEV Mobile 26 feature!
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
Adds a new shape (polygon, line, circle) to the map displayed in a Map control.
Example
// Add a polygon to the Map control
Polygon is MapPolygon
FOR EACH PointPosition OF arrPositions
Add(Polygon.Point, PointPosition)
END
Polygon.LineColor = LightRed
Polygon.ActionClick = ClickProc
MapAddShape(MAP_MyMap, Polygon)
Syntax
<Result> = MapAddShape(<Map control> , <Shape>)
<Result>: Boolean
  • True if the shape could be added to the Map control,
  • False otherwise. To get the details of the error, use ErrorInfo.
<Map control>: Control name
Name of Map control to use. If this parameter corresponds to an empty string (""), the Map control to which the current process belongs will be used.
<Shape>: MapCircle, MapPolygon or MapPolyline variable
Shape to be drawn on the map displayed in the Map control. This shape can be described using one of the following types of variables:
Remarks
  • Once the shape has been added, you can use its name (Name property of the associated variable).
  • If the shape has already been added to the Map control or if it is invalid (e.g.: polygon with an insufficient number of points), a fatal error will be displayed.
  • To delete a shape drawn in a Map control, use MapDeleteShape.
  • To modify a shape drawn in a Map control, use MapModifyShape.
Business / UI classification : UI Code
Component : wd260obj.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment