MobileMapViewer.GoToLocation

From Xojo Documentation

Method

MobileMapViewer.GoToLocation(latitude As Double, longitude As Double)

New in 2020r2

Supported for all project types and targets.

Centers the map on the provided latitude and longitude.


Method

MobileMapViewer.GoToLocation(location As MapLocation)

New in 2020r2

Supported for all project types and targets.

Centers the map on the provided location.

Notes

If either the latitude or longitude are invalid, an InvalidArgumentException will occur.

Sample Code

Show Hobbiton on MapViewer1:

MapViewer1.GotoLocation(-37.871826, 175.681283)

See Also

AddLocation method.