How to load Google Maps in wpf window?

感情迁移 提交于 2019-12-18 13:37:54

问题


Is it possible to load Google Maps in wpf window? If yes how can i do this? I'm using visual studio-2010 and DevExpress tool. This code i found from DevExpress official site for openstreetmaps.

const string roadUrlTemplate = @"http://{subdomain}.tile.openstreetmap.org/{tileLevel}/{tileX}/{tileY}.png";

回答1:


Hope you will find these articles useful:

  • MAPPING IN WPF, SILVERLIGHT AND WP7
  • WPF Map App: WPF Meets Google Geocoding and Static Maps APIs
  • Google Maps in WPF with WebBrowser and Google Maps API v3



回答2:


If you are not limited to using Google Maps then take a look at the Bing Maps WPF control for a truly native WPF map solution:

http://msdn.microsoft.com/en-us/library/hh750210.aspx

If you need to use Google Maps you can of course use a web browser control and create an interlop to communicate between C# and JavaScript however if you want a native WPF solution then take a look at some open source solutions like the following:

http://greatmaps.codeplex.com/

https://github.com/ericnewton76/gmaps-api-net



来源:https://stackoverflow.com/questions/23903586/how-to-load-google-maps-in-wpf-window

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