Clears the geographies drawn (all or one given by its Id).
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.
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.
Generators: Android, Apple
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
This method is available since GeneXus 17.
DrawGeography method