A
A
Andrey Kornev2015-02-17 12:07:48
Windows phone
Andrey Kornev, 2015-02-17 12:07:48

How to use MapControl Windows Phone?

I'm developing an application for WP 8.1 with the subsequent porting to W8.1
1. I can't figure out how to use MapControl. I've read a bunch of documentation and haven't found how to set the default map center when opening a page. Everywhere examples use geolocation and map scrolling to the current position. What I need is that when the page is opened, the center of the city is visible and only then scrolling to the current position of the user.
2. How to set a label for the user, let's say a double tap.
3. How to get the address of the label, not the coordinates, but the address.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
deridv, 2015-02-24
@webkornevand

Hey!
Need to know the coordinates of the city center to set them

var gp = new Geopoint(new BasicGeoposition() { Latitude = 55.6127809826285, Longitude = 13.0031764693558 });
myMap.Center = gp;

and then make the transition.
This article will answer the other two questions for you.
https://msdn.microsoft.com/en-us/magazine/dn818495.aspx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question