Skip to content

visualMap设置文字width无效 #15644

@cj11032

Description

@cj11032

Version

4.9.0

Steps to reproduce

1.官网可以验证:设置该属性--visualMap-piecewise.textStyle. width
2.具体设置值:

visualMap: {
    type: "piecewise",
    splitNumber: 8,
    min: 0,
    max: 100,
    calculable: true,
    realtime: false,
    inRange: {
      color: ["#313695", "#4575b4", "#74add1", "#abd9e9", "#e0f3f8", "#ffffbf", "#fee090", "#fdae61", "#f46d43", "#d73027", "#a50026"]
    },
    textStyle: {
      width: 4,
      overflow: "break"
    }
  },

What is expected?

希望设置了文字宽度后,能实现文字换行

What is actually happening?

设置了width以及overflow属性依然无效


分段型视觉映射组件在应用时有可能文字过长,希望能换行好看点

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstaleInactive for a long time. Will be closed in 7 days.topic: visualMap

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions