1. Add a tag:
Marking is the most common method in a map. It is different from Bing map. The namespace is different first, and the display mode is different. However, it can be run in simulation.
Pushpin pin = new pushpin ();
Pin. Location = new geocoordinate (30.259497, 120.129798 );
Pin. width = 200;
Pin. Height = 200;
Pin. content = "test ";
Pin. Background = new solidcolorbrush (colors. Red );
Mark displayed by the map control
Tags displayed by the Bing map control
2. Draw a multi-border area:
Mappolygon polygon = new mappolygon ();
Polygon. Locations = new locationcollection () {New geocoordinate (30.259497, 120.129798 ),
New geocoordinate (30.359497, 120.329998 ),
New geocoordinate (30.379497, 120.529798 ),
New geocoordinate (30.389497, 120.729798 )};
3. Draw a multilateral line:
Mappolyline polyline = new mappolyline ();
Polyline. Stroke = new solidcolorbrush (colors. Red );
Polyline. Locations = new locationcollection (){
New geocoordinate (30.259497, 120.129798 ),
New geocoordinate (30.289497, 120.120998)
};
4. Add images to the map:
Maplayer imagelayer = new maplayer ();
Imagelayer. addchild (image, new geocoordinate (30.259497, 120.129798), positionorigin. bottomleft );