We have seen how to change map modes, however just a simple map without any focus does not make much sense, does it? So we move further and modify the
HelloMaps example by using the Windows Phone Location Service to add a pushpin to the map — signifying the user's detected location.
Pushpin class is part of the
Microsoft.Phone.Controls.Maps namespace, with location as one of the properties. So let's use this property in our code and render a simple pushpin:
HelloMapsexample, reintegrate the same UI, maps, and text labels, and from our
Hello Locationexample, import the
statusText. Your UI should now look like the following screenshot: ...