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 );
Sample Code: http://www.daisy123.com /? Page_id = 275 Map control