O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Drawing icons, polylines, and polygons on a map

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.

Getting ready

To step through this recipe, you need only the automatically generated project.

How to do it...

To prepare an example that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required