2012-04-18 244 views
1

当用户点击我的Metro风格应用程序中的地址时,我想打开Windows 8附带的地图应用程序以在地图上显示地址。如何从Metro风格的应用程序打开地图应用程序?

我知道你不能直接启动进程,由于沙箱,但它可以启动例如。通过使用Launcher类的浏览器。有没有类似的方式来启动具有指定地址的地图应用程序?

当然可以使用Bing Maps for Metro Style Apps将地图集成到我的应用程序中,但如果存在更简单的方法,我宁愿不去那里。

回答

0

Windows 8地图应用程序支持protocol activation,因此您提到的方案是受支持的。 URI定义尚未发布。当它在dev.windows.com上可用时,我会发布一个链接。

+0

好的,谢谢你的信息! – sdb 2012-05-29 07:46:31

1

Here's为“URI的文档地图应用方案“。样品:

bingmaps: /* Opens the Maps app centered over the user’s region */ 

bingmaps:?cp=40.726966~-74.006076 /* Opens the Map app centered over New York City */ 

bingmaps:?cp=40.726966~-74.006076&lvl=10 /* Opens the Maps app centered over NYC at zoom level 10 */ 

bingmaps:?bb=39.719_-74.52~41.71_-73.5 /* Opens the map over NYC using the bounding box of the screen */ 
相关问题