Maps - DrawGeography Method

Unofficial Content
This documentation is valid for:

Lets draw a geography in Grid control type Maps

Syntax

GeographyId = MapGrid.DrawGeography(Geography )
GeographyId = MapGrid.DrawGeography(Geography, ClassName )
GeographyId = MapGrid.DrawGeography(GeoPoint, ClassName )
GeographyId = MapGrid.DrawGeography(GeoLine, ClassName )
GeographyId = MapGrid.DrawGeography(GeoPolygon, ClassName )

Where ClasName is Character. and optionally.It the name of the theme class to use for drawing
Where GeographyId  is Varchar, it is a Guid to identifiy the geography drawn

Example

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

Scope

Objects:  Panel
Generators:  Apple, Android

Considerations

This only applies to events on the client, such as user events. To draw on the server use Location Attribute property
The refresh event clear the geometries drawn by this method.

Availability

This method is available since GeneXus 17.

See also

Maps
Maps - DrawGeoLine Method (deprecated)