Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google maps in 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.

like image 437
DEH Avatar asked Mar 06 '26 00:03

DEH


1 Answers

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/

like image 197
Steve Willcock Avatar answered Mar 08 '26 14:03

Steve Willcock