WebMapLocation

From Xojo Documentation

Class (inherits from Object)


New in 2011r2

A location on a WebMapViewer.

Properties
APIKey Icon Tag
Address Latitude Title
Animated Longitude Visible


Methods
MoveTo


Shared Methods
LookupAddress


Constructors

WebMapLocation.Constructor(Address as String)


WebMapLocation.Constructor(Latitude as Double, Longitude as Double, Tag as Variant = Nil)


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:

Dim locationText As String
locationText = LocationField.Text

Dim location As New WebMapLocation(locationText)

UserMapViewer.GotoLocation(location) // Center map at location
UserMapViewer.AddLocation(location) // Drop pin at location

See Also

WebDeviceLocation, WebMapViewer