MapIcon.Location Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.