Official Content

Clears the geographies drawn (all or one given by its Id).

Syntax

GridControlName.Clear([GeographyId])

Where:

GridControlName
       Is the Grid control name whose Control Type property is set to Maps.

GeographyId
       
Optional parameter, based on the character data type, that contains the identifier of the geometry (Line, point, or polygon) to delete.

Description

To delete a specific geography, you must send its identifier as a parameter. It can be obtained in edit mode, when using the Editable Geographies property, or when using the DrawGeography method.

Scope

Generators: AndroidApple
Controls: Grid (Control Type: Maps)


Samples

To clear all the geographies drawn in a Panel Grid with Control Type = Maps:

MapGrid.Clear()

To clear a specific Geography (a Geoline for example):

Event 'DrawGeoLine'
      &LineId = MapGrid.DrawGeoography(&Geoline)
Endevent

Event 'RemoveLine'
    MapGrid.Clear(&LineId)
Endevent

Availability

This method is available since GeneXus 17.

See Also 

DrawGeography method
 

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant