MobileMapViewer
From Xojo Documentation
Class (inherits from MobileUIControl)
New in 2020r2
A control for viewing maps loaded via a map provider like Google.
Enumerations | ||
|
Events | ||||
|
Properties | |||||||||||||||||
|
Methods | ||||||||||||
|
Notes
With the MobileMapViewer, you can go to a specific location, add pins that represent locations, remove those locations and search for locations by name, address, type, etc.
Sample Code
Show Hobbiton on MapViewer1:
MapViewer1.GotoLocation(-37.871826, 175.681283)
Add the Grand Canyon and the White House locations to MapViewer1:
Var locations() As MapLocation
locations.Add(New MapLocation(36.056595, -112.125092)) 'Grand Canyon
locations.Add(New MapLocation(38.897957, -77.036560)) 'White House
MapViewer1.AddLocation(locations)
locations.Add(New MapLocation(36.056595, -112.125092)) 'Grand Canyon
locations.Add(New MapLocation(38.897957, -77.036560)) 'White House
MapViewer1.AddLocation(locations)
Find all the McDonalds locations near the center of the map currently being displayed and add them to it:
Var locationsFound() As MapLocation
locationsFound = MapViewer1.LocationsFromQuery("McDonalds")
MapViewer1.AddLocation(locationsFound)
locationsFound = MapViewer1.LocationsFromQuery("McDonalds")
MapViewer1.AddLocation(locationsFound)
See Also
MapLocation and MobileLocation classes.