【问题标题】:C# WinForms .Net devexpress map PinC# WinForms .Net devexpress map Pin
【发布时间】:2016-11-16 13:16:21
【问题描述】:

我在 c# 中使用 Windows 窗体。我在我的项目中使用 Devexpress 组件。我想加入不同颜色的引脚方式。我向地图添加 2 个组引脚。第一组引脚方式颜色为红色,另一组引脚方式颜色为深蓝色。请帮帮我。我该如何解决这个问题?

Please follow this photo

【问题讨论】:

    标签: c# winforms devexpress


    【解决方案1】:

    来源: Can I use different color for MapPushpins or is there just the orange one?

    很遗憾地通知您,MapPushpins 只有默认的橙色 颜色。

    作为一种解决方法,您可以为图像分配所需的图钉颜色 通过 MapPointer.Image 属性到地图图钉。

    另一种方法是指定不同的突出显示颜色 使用 MapCustomElement.Fill、MapCustomElement.StrokeWidth 的图像 和 MapCustomElement.Stroke 属性。

    参考:
    Custom Route Colors -- 见附件
    MapControl - changing colour of pushpins
    Map Control custom example

    【讨论】:

      猜你喜欢
      • 2014-11-02
      • 1970-01-01
      • 2023-01-23
      • 1970-01-01
      • 2010-09-24
      • 2011-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多