MapLocation.Constructor(latitude As Double, longitude As Double, tag As Variant = Nil)

From Xojo Documentation

Constructor

MapLocation.Constructor(latitude As Double, longitude As Double, tag As Variant = Nil)

New in 2020r2

Creates a MapLocation at the latitude and longitude with the tag passed.

Notes

If latitude or longitude passed is not valid, an InvalidArgumentException will occur.

Sample Code

Create a location for the White House:

Var theWhiteHouse As New MapLocation(38.897957, -77.036560)