WebMapLocation
From Xojo Documentation
Supported Platforms Project Types: Web Platforms: macOS, Windows, Linux |
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.
Examples
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.Text
Var location As New WebMapLocation(locationText)
UserMapViewer.GotoLocation(location) // Center map at location
UserMapViewer.AddLocation(location) // Drop pin at location
locationText = LocationField.Text
Var location As New WebMapLocation(locationText)
UserMapViewer.GotoLocation(location) // Center map at location
UserMapViewer.AddLocation(location) // Drop pin at location