Skip to content

series-lines.labelLayout. draggable #15114

@charlesqin7

Description

@charlesqin7

Version

5.1.2

Steps to reproduce

{
                        id: 'lines-2',
                        type: 'lines',
                        z: 4,
                        coordinateSystem: 'geo',
                        lineStyle: {
                            type: [3, 5],
                            DashOffset: 10, 
                            width: 2.5,
                            opacity: 0.1,
                            color: 'white',
                            curveness: -0.35,
                        },
                        label: {
                            show: true,
                            position: 'middle',
                            opacity: 1,
                            formatter: function(A) {
                                return '10 hrs';
                            },
                        }, 
                        labelLayout(params) {
                            return {
                                x: params.rect.x - 10,
                                y: params.rect.y - 10,
                                rotate: 0,
                                fontSize: 14,
                                draggable: true,
                            }
                        },
                        data: CordsData,  
                    },

What is expected?

设置series-lines.labelLayout. draggable=true,label可以拖拽以调整位置

What is actually happening?

在geo地图上series-lines.labelLayout. draggable设置为true时,label不能拖拽


同时series-lines.labelLayout. x,series-lines.labelLayout. y 的设置也没有效果

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.waiting-for: community

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions