MapIcon.Location Property

Definition

Gets or sets the geographic location of the MapIcon on the MapControl. The location is the geographic location on the MapControl at which the NormalizedAnchorPoint of the MapIcon is positioned.

public:
 property Geopoint ^ Location { Geopoint ^ get(); void set(Geopoint ^ value); };
Geopoint Location();

void Location(Geopoint value);
public Geopoint Location { get; set; }
var geopoint = mapIcon.location;
mapIcon.location = geopoint;
Public Property Location As Geopoint

Property Value

The geographic location of the MapIcon on the MapControl.

Remarks

If you provide an Alititude and AltitudeReferenceSystem in 3D views, then MapIcon elements added to the MapControl end up being placed underground or floating in space.

Applies to

See also