Official Content

Draws geography in a Panel Grid whose Control Type property is set to Maps.

Syntax

&GUID = GridControlName.DrawGeography(Geography)

Where:

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

Geography
    Attribute or variable based on the Geography data type.

Type Returned:
Varchar (GUID to identify the geography drawn).

Scope

Controls:  Grid (Control Type: Maps)
Generators:  Apple, Android

Sample

&Geography.FromString("LINESTRING(-56.082774 -34.884341, -56.074583 -34.881745)")
&GeographyId = MapGrid.DrawGeography(&Geography)

Considerations

This only applies to events on the client, such as user events, excepts for the ClientStart event.

To draw on the server, use the Location Attribute property.
The refresh event clears the geometries drawn by this method.

Availability

This method is available since GeneXus 17.

See Also

DrawGeoLine Method

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