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

在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日

    悬赏问题

    • ¥30 模拟电路 logisim
    • ¥15 PVE8.2.7无法成功使用a5000的vGPU,什么原因
    • ¥15 is not in the mmseg::model registry。报错,模型注册表找不到自定义模块。
    • ¥15 安装quartus II18.1时弹出此error,怎么解决?
    • ¥15 keil官网下载psn序列号在哪
    • ¥15 想用adb命令做一个通话软件,播放录音
    • ¥30 Pytorch深度学习服务器跑不通问题解决?
    • ¥15 部分客户订单定位有误的问题
    • ¥15 如何在maya程序中利用python编写领子和褶裥的模型的方法
    • ¥15 Bug traq 数据包 大概什么价