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

From Xojo Documentation

Revision as of 15:50, 2 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constructor

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

New in 2011r2

Creates a WebMapLocation from the passed latitude and longitude. Tag is an optional parameter for identifying locations.

Example

Show the specified location:

Var location As New WebMapLocation(38.8977, -77.0366, "TheWhiteHouse")
MapViewer1.GoToLocation(location)
MapViewer1.Zoom = 19