C#中的必应地图-更改图钉图像 [英] Bing Maps in C# - Change Pushpin Image
问题描述
我一直在互联网上进行研究,以寻找一种方法来更改Bing Maps C#控件中的图钉图像.我最接近的是使用以下解决方案:
I've been researching all over the internet for a way to change the pushpin image in the Bing Maps C# control. The closest that I came was using the following solution:
这并不是我想要的,因为我希望能够更改图钉的颜色以及添加标签.
It is not entirely what I'm looking for, as I want to be able to change the color of the push pin as well as add a label.
上述解决方案基本上是在图钉上绘制的图像,而没有其他功能,例如添加标签.我希望能够在具有自定义标签功能的同时轻松更改图像.
The above solution is basically an image that is drawn over a push pin without additional functionality such as adding a label. I want to be able to easily change an image while having custom label functionality.
还有其他方法吗?另一种选择是利用标准" Bing图钉图形并能够更改大小.但是,似乎此功能在C#控件中不可用
Is there any other way of doing this? An alternative would be to make use of "standard" Bing push pin graphics and be able to change the size. However it seems this functionality is not available in the C# control
推荐答案
以下博客文章回答了我的问题: http://dennis.bloggingabout.net/2012/10/17/bing-maps-on-wpf-and-custom-pushpin-tutorial-for-pixelsense/
This following blog post answers my questions: http://dennis.bloggingabout.net/2012/10/17/bing-maps-on-wpf-and-custom-pushpin-tutorial-for-pixelsense/
这篇关于C#中的必应地图-更改图钉图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!