Reputation: 2941
I am trying to create a wpf control that will display a map image using google maps. I want to be able to centre the map on a longitude and latitude specified by the application. Ideally, the control will then allow the user to move a map marker and store the latitude/longitude of the marker in the application.
The only way I can think of doing this is to use a WebBrowser control and create a HTML string at runtime that shows a map of the desired location. This seems like an awkward solution and won't allow me to easily retrieve the marker location. Does anyone know of a better way to accomplish this?
Upvotes: 3
Views: 12468
Reputation: 15227
I'm not 100% sure on this, but I think that doing something like that would violate Google Map's Terms of Service.
Upvotes: 1
Reputation:
Hosting Google Maps in a Microsoft WPF application using XAML http://code.google.com/apis/maps/articles/flashmapinwpf.html
Upvotes: 3
Reputation: 5135
There is a nice integration between windows forms and Microsoft Virtual Earth (sample here.) There are licensing considerations for commercial products, but this is certainly more or a "turnkey" option. You would also need to look into the Windows Forms Host to put a Forms control into a WPF app.
Upvotes: 0