简体   繁体   English

C# WinForms .Net devexpress map Pin

[英]C# WinForms .Net devexpress map Pin

I work with Windows Forms in c#.I use Devexpress components in my project.I want join pins way different color.I add 2 group pins to map.First group pins way color red another group pins way color dark blue.Please help me.How i can solve this problem ?我在 c# 中使用 Windows 窗体。我在我的项目中使用 Devexpress 组件。我想以不同颜色的方式连接引脚。我将 2 组引脚添加到地图。第一组引脚方式颜色为红色,另一组引脚方式颜色为深蓝色。请帮助我。我该如何解决这个问题?

Please follow this photo请关注这张照片

Source: Can I use different color for MapPushpins or is there just the orange one?来源: 我可以为 MapPushpins 使用不同的颜色还是只有橙色的?

I regret to inform you that MapPushpins have only the default orange color.我很遗憾地通知您,MapPushpins 只有默认的橙色。

As a workaround, you can assign an image with a desired pushpin color to the map pushpin via the MapPointer.Image property.作为一种解决方法,您可以通过 MapPointer.Image 属性将具有所需图钉颜色的图像分配给地图图钉。

An alternative way is to specify different highlighted colors for an image using the MapCustomElement.Fill, MapCustomElement.StrokeWidth and MapCustomElement.Stroke properties.另一种方法是使用 MapCustomElement.Fill、MapCustomElement.StrokeWidth 和 MapCustomElement.Stroke 属性为图像指定不同的突出显示颜色。

References:参考:
Custom Route Colors -- See attached sample 自定义路线颜色——见附件示例
MapControl - changing colour of pushpins MapControl - 改变图钉的颜色
Map Control custom example 地图控件自定义示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM