Google maps in Silverlight

ぃ、小莉子 提交于 2020-01-24 11:30:47

问题


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.


回答1:


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/




回答2:


There is no Silverlight control for Google maps. Google also only allows use of their map data if you are using their API. The path of least resistance will be to use Bing Maps with the Bing Maps Silverlight control.

Otherwise, you'd probably want to use a different web technology with javascript to integrate with Google maps.



来源:https://stackoverflow.com/questions/3309100/google-maps-in-silverlight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!