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

Adding a custom marker to a map

A default map icon, presented in the previous recipe, could not be suitable in all applications. For example, it could not match the design that is applied in the project. Thus, it should be replaced with another one, which is consistent with the overall visual identity. In this recipe, you will learn how to place a custom marker on the map.

As an example, you will prepare an application that obtains the current location of the user using the GPS receiver. Then it will center the map on this location and place a custom image representing the user.

Getting ready

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

How to do it...

To prepare an example that adds a custom marker on the map in ...

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