Parameterized start
It would be great if you cloud start your app with parameters, e.g. with a URI which includes coordinates, zoom level and so on.
I would need that functionality to start the app right away with the needed information, out of another app.
What would be nice:
Center to certain coordinates with a defined zoom level
Start navigation between 2 sets of coordinates (maybe also route selection)
Hello Marcel and thanks for this suggestion,
This is actually already possible, and this is actually how you Maps Pro can be used to show the location of one of your contacts in the “People” application that comes with Windows 8.
All the options are documented here and are all supported by Maps Pro, including setting the map’s position and routing between 2 points:
http://msdn.microsoft.com/en-us/library/windows/apps/jj635237.aspx
So if you have a link like:
bingmaps:?cp=40.726966~-74.006076 /* Opens the Maps app centered over New York City */
It will take you to any application that can consume this kind of URL. If you have more than one (if you have Maps and Maps Pro), Windows will prompt you with a list of “compatible apps”. The protocol is called “bingmaps” which is unfortunate but it will work with Maps Pro that implements this protocol. It should work
Tell me if you need more information
Fabien
-
Hello Marcel,
I didn't know that it could work like that with just one coordinate. So I fixed it and send the version to Microsoft for certification, it will be available in a couple of days (v126.3.0.359)
Thanks,
Fabien -
Marcel commented
Currently I'm launching your app from my own app with this protocol, something like this:
bingmaps:?rtp=~pos." + latitude + "_" + longitude
The problem is that the start point field stays empty. Is there a way to set that field to "My position", because it's the default thing that happens if you use the standard windows maps app?