具有地图控件和自定义地图的WPF应用程序 [英] WPF Application with map control and custom map

查看:113
本文介绍了具有地图控件和自定义地图的WPF应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个胶结的地理正射贴图.图层之间有摄影,坟墓和道路. 我正在尝试使用地图控件创建WPF应用程序,并显示与我创建的数据库连接的地图.我需要允许用户单击一些坟墓,然后显示带有一些个人日期和按钮的覆盖物,以使用我之前在其他程序(如QGIS)中标记的路线导航到该特定坟墓.必应地图有什么办法吗?还是您知道解决此问题的任何方法?

I have a georeferenced orthofotomap of cmentary. There is layers with foto, graves and roads between them. I'm trying to create WPF application with map control and display map connected with database that I created. I need to allow user to click some grave and then show a overlay with some personal date and button to navigate to this specific grave using routes that I marked before in other program like QGIS. Is there any way to do is with Bing Maps? Or do you know any way to resolve this problem?

推荐答案

最简单的解决方案是使用MapCruncher之类的工具将图像转换为图块层:

The easiest solution is to turn your image into a tile layer using a tool like MapCruncher: https://www.microsoft.com/en-us/download/details.aspx?id=22420

如果托管在网络或服务器上,则可以添加此图块层,或使用以下博客并将其添加为本地图块层:

You can then add this s a tile layer if hosted on a network or server, or use the following blog and add it as a local tile layer: https://blogs.bing.com/maps/2015/08/24/local-tile-layers-in-bing-maps-wpf/

如果图像不旋转且不需要任何拉伸,则也可以尝试这种方法:

If your image isn't rotated and doesn't require any stretching, you could also try this approach: http://code.msdn.microsoft.com/Binding-and-Image-to-a-01a56e48

这篇关于具有地图控件和自定义地图的WPF应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆