-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Windows Application Development Cookbook
By :
It is often necessary to present additional content on the map, such as icons, polylines, and even polygons. Thus, you can easily show some interesting points, indicate a route, as well as mark regions important for a user. In this recipe, you will learn how to perform such tasks using MapControl.
As an example, you will add three icons on the map, presenting Rzeszow Castle, Rzeszow Town Hall, and Farny Church. Apart from them, you will draw a polyline marking the 3rd May Street in Rzeszow. At the end, you will draw a polygon that indicates a border of Rzeszow Castle.
To step through this recipe, you need only the automatically generated project.
To prepare an example that adds icons, a polyline, and a polygon on the map, perform the following steps:
MapControl control (presenting the map) to the page. To do so, modify the content of the MainPage.xaml file, as follows: <Page (...)
...