Map Control for Windows Phone development

Source: Internet
Author: User
Tags polyline

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 );

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.