Custom-drawing MapPoint maps in C#?

Custom-drawing MapPoint maps in C#?

猫九 发布于 2021-11-27 字数 531 浏览 732 回复 3 原文

My application requires an on-drive map as there will be no internet access during operation. I've kind of settled on using MapPoint 2009, but the map 'style' really clashes with my overall UI look and feel.

I'm wondering if there's some way to custom draw everything on the map (roads, labels, etc.)? It's crossed my mind that perhaps there's some themeing in the MapPoint application itself, but I don't have it handy right now :(

I'd totally prefer a WPF method but really, anything at this point helps :)

如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

扫码加入群聊

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

剑心龙吟 2022-06-07 3 楼

The only available map styles are those available through the GUI. Eg. there's a night time view, etc. Label font sizes can also be changed

MapPoint 2010 adds some additional styling in terms of what is displayed. Each feature class (rivers, large cities, medium sized cities, interstates, etc) can be off/normal/all. Along with the font size and general theme, these settings can be controlled through the API.

忆伤 2022-06-07 2 楼

I don't believe the MapPoint COM API exposes any method of overriding the default rendering. You can add your own objects on top (via shapes, etc), but I don't believe it will do exactly what you are asking for.

The only C# mapping framework I know of that would do this is SharpMap v2. The plans were to provide a WPF rendering stack in addition to the current GDI+ one.

白云不回头 2022-06-07 1 楼

No, basically. The most you can do is add push-pins, lines, shapes etc. There is a usenet forum (microsoft.public.mappoint) that might have more, but I can pretty much guarantee the answer is "no".