AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Mapa
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Deletes a shape drawn on the map displayed in an Map control.
Example
// Delete a shape
MAP_MyMap.DeleteShape(MyShape)
Syntax

Deleting a shape via its associated variable Hide the details

<Result> = <Map control>.DeleteShape([<Shape>])
<Result>: Boolean
  • True if the shape was deleted,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Map control>: Control name
Name of the Map control to be used.
<Shape>: MapCircle, MapPolygon or MapPolyline variable
Shape to be deleted on the map displayed in the Map control. This shape can be described using one of the following types of variables: If this parameter is not specified, all the shapes on the map will be deleted.

Deleting a shape via its name Hide the details

<Result> = <Map control>.DeleteShape(<Shape identifier>)
<Result>: Boolean
  • True if the shape was deleted,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Map control>: Control name
Name of the Map control to be used.
<Shape identifier>: Character string
Identifier of the shape to delete. This identifier corresponds to the Name property of the variable associated with the shape. If this parameter is not specified, all the shapes on the map will be deleted.
Remarks
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
Business / UI classification: UI Code
Component: wd290java.dll
Versión mínima requerida
  • Versión 26
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/06/2023

Señalar un error o enviar una sugerencia | Ayuda local