Class

MapLocation


Description

Represents a location anywhere on Earth.

Properties

Name

Type

Read-Only

Shared

Address

String

Animated

Boolean

Icon

Picture

Latitude

Double

Longitude

Double

Tag

Variant

Title

String

Methods

Name

Parameters

Returns

Shared

Constructor

address As String, tag As Variant = Nil

Constructor

latitude As Double, longitude As Double, tag As Variant = Nil

Property descriptions


MapLocation.Address

Address As String

The physical address (if there is one) of the location.

This property is read-only.


MapLocation.Animated

Animated As Boolean

If True, moving the map to a new location or displaying an added location will be animated.


MapLocation.Icon

Icon As Picture

The picture that appears at the location when added to the map. The default is a pin.


MapLocation.Latitude

Latitude As Double

The angular distance of the center of the map north or south of the equator.

This property is read-only.


MapLocation.Longitude

Longitude As Double

The angular distance of the center of the map east or west of the meridian at Greenwich, England.

This property is read-only.


MapLocation.Tag

Tag As Variant

An related value associated with the location.


MapLocation.Title

Title As String

A name associated with the location. The name that appears when the location is added to a map.

Method descriptions


MapLocation.Constructor

Constructor(address As String, tag As Variant = Nil)

Note

Constructors are special methods called when you create an object with the New keyword and pass in the parameters above.

Creates a MapLocation at the address and with the tag passed.


MapLocation.Constructor

Constructor(latitude As Double, longitude As Double, tag As Variant = Nil)

Note

Constructors are special methods called when you create an object with the New keyword and pass in the parameters above.

Creates a MapLocation at the latitude and longitude with the tag passed.

If latitude or longitude passed is not valid, an InvalidArgumentException will occur.

Create a location for the White House:

Var theWhiteHouse As New MapLocation(38.897957, -77.036560)

Notes

If you provide invalid coordinates or an invalid address when creating a MapLocation, an InvalidArgumentException will occur.

Compatibility

All project types on all supported operating systems.

See also

Object parent class; MobileMapViewer class.