WebMapLocation
From Xojo Documentation
Class (inherits from Object)
New in 2011r2
A location on a WebMapViewer.
Properties | |||||||||
|
Methods | ||
|
Shared Methods | |
|
Constructors | ||
|
Notes
Use WebMapLocation to get a location to display in a WebMapViewer.
Sample Code
This example gets a location entered by the user in a WebTextField, creates a WebMapLocation and uses it to display the location on a WebMapViewer:
Var locationText As String
locationText = LocationField.Value
Var location As New WebMapLocation(locationText)
UserMapViewer.GotoLocation(location) // Center map at location
UserMapViewer.AddLocation(location) // Drop pin at location
locationText = LocationField.Value
Var location As New WebMapLocation(locationText)
UserMapViewer.GotoLocation(location) // Center map at location
UserMapViewer.AddLocation(location) // Drop pin at location