WPF map control with supported directions, search

淺唱寂寞╮ 提交于 2019-12-23 03:07:52

问题


I am searching Windows 7 compatible WPF/WinForms control that can display maps, calculate directions, perform searching and other map operations. Basically, it all doesn't have to integrated in one solution, it can be something like one control for maps display (Google or Bing or Nokia or OSM) and some library that supports all other operations, but it should be easy to integrate this two, like draw calculated route on map or fetch calculated routes from map. What i don't want is that all is bundled in map control and not accessible from code behind, like having some maps.google in WebBrowserControl.


回答1:


Bing Maps has a dedicated WPF map control that can also be used in WinForm applications. You can find documentation on the WPF control here: http://msdn.microsoft.com/en-us/library/hh750210.aspx

Here is a blog post on how to use the WPF control in a WinForm application:

http://rbrundritt.wordpress.com/2012/01/05/using-bing-maps-in-winforms/

To do geocoding/routing with this control you would use the Bing Maps REST services:

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

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

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

http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/02/14/bing-maps-rest-service-tips-amp-tricks.aspx

Here are a couple other blog posts on the Bing Maps WPF control that you might find interesting:

http://rbrundritt.wordpress.com/2012/06/08/entity-framework-5-bing-maps-wpf/

http://www.bing.com/blogs/site_blogs/b/maps/archive/2012/09/12/esri-shapefiles-and-bing-maps-wpf.aspx

http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/10/03/draggable-pushpins-in-bing-maps-net.aspx




回答2:


Displaying Google Maps in a WPF application can involve using the Google Maps API for Flash or the Google Maps JavaScript API.

You might find something interested and much similar to what you are looking for WPF Map App: WPF Meets Google Geocoding and Static Maps APIs




回答3:


This is awsome, it has everything I need, and much more: GMap.NET - Great Maps for Windows Forms & Presentation




回答4:


It seems your best bet would simply be to use the Google Maps API for Javascript for front end display logic and then Google's selection of web services for any code-behind calculations, geocoding, routing etc.

There is no need for your solution to be entirely front end as you specify but obviously there is a need for front end mapping functionality. All of the services can be accessed directly from the RESTful Google services from your c# (or even ajaxed javascript), I don't understand the need for it to be specifically WPF?



来源:https://stackoverflow.com/questions/21454496/wpf-map-control-with-supported-directions-search

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