Silverlight中的Google地图 [英] Google maps in Silverlight

查看:126
本文介绍了Silverlight中的Google地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

整合Google Maps和Silverlight的最佳/最简单的方法是什么?我希望在Silverlight画布中显示Google地图,其中画布将被其他驱动地图的silverlight控件所包围。

解决方案

如果您确实需要在Silverlight应用程序中使用Google地图,并且可以在浏览器模式下运行应用程序,那么您可能需要查看Silverlight 4的WebBrowser控件 使用WebBrowser控件,可以开始使用某些东西就像这样简单:

 < Grid x:Name =LayoutRootBackground =White> 
< WebBrowser Source =http://maps.google.com//>
< / Grid>

然而,将映射集成到Silverlight应用程序当然不是最好的方法。要在Silverlight中使用映射,最好的选择是Bing Maps Silverlight控件 - 查看这些链接以开始使用: www.microsoft.com/maps/rel =nofollow noreferrer> http://www.microsoft.com/maps/



http://www.microsoft.com/maps/isdk/silverlight/


What is the best/easiest way to integrate google maps and silverlight? I would like to display a google map within a silverlight canvas, where the canvas will be surrounded by other silverlight controls that drive the map.

解决方案

If you really need to use Google maps inside your Silverlight application and you can run your application in out of browser mode then you might want to take a look at the WebBrowser control for Silverlight 4

Using the WebBrowser control, you could get started with something as simple as this:

<Grid x:Name="LayoutRoot" Background="White">
    <WebBrowser Source="http://maps.google.com/" />
</Grid>

However, it's certainly not the best way to integrate mapping into a Silverlight application. To use mapping inside Silverlight your best choice is really the Bing Maps Silverlight control - take a look at these links to get started:

http://www.microsoft.com/maps/

http://www.microsoft.com/maps/isdk/silverlight/

这篇关于Silverlight中的Google地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆