cool_宇恒 2022-11-21 09:24
浏览 31
已结题

在3d地图中使用geo3D方法创建3d地图的时候无法修改label上的文字属性但是可以修改显示隐藏

在3d地图中使用geo3D方法创建3d地图的时候无法修改label上的文字属性但是可以修改显示隐藏

 geo3D: {
                    // tooltip: {
                    //     trigger: "item",
                    // },
                    name: this.mapName,
                    type: "map3D",
                    map: this.mapName,
                    boxDepth: style.boxDepth, //地图倾斜度
                    regionHeight: style.regionHeight, //地图厚度
                    label: {
                        show: style.labelShow, //是否显示市
                        textStyle: {
                            color: 'red', //文字颜色
                            fontSize: 24, //文字大小
                            fontFamily: '微软雅黑',
                            fontWeight: 400,
                        },
                    },
                    groundPlane: {
                        show: style.groundPlaneShow, // 地面开启
                        color: style.groundPlaneColor, // 地面颜色
                    },
                    itemStyle: {
                        color: style.itemStyleColor,
                        opacity: style.itemStyleOpacity, // 透明度
                        borderWidth: style.itemStyleBorderWidth, //分界线宽度
                        borderColor: style.itemStyleBorderColor, //分界线颜色
                    },
                    emphasis: {
                        itemStyle: {
                            color: style.emphasisItemStyleColor,
                            opacity: style.emphasisItemStyleOpacity, // 透明度
                            borderWidth: style.emphasisItemStyleBorderColor, //分界线宽度
                            borderColor: style.emphasisItemStyleBorderWidth, //分界线颜色
                        }
                    },
            }

样式无法修改

在textStyle标签外加过itemStyle:{} 也不行, 使用series:[{type:map3D}] 会报geo "0" not found

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 11月29日
    • 创建了问题 11月21日