1

我有一张这样的地图:http: //jsfiddle.net/67ex7kd7/5/

我正在尝试使地图气泡在被选中时变成更深的粉红色阴影。我试过使用这样的 mapbubble states 选项:

        states:{
            hover: {
                borderColor: '#903d50',
                borderWidth: '3px',
                brightness: 1,
                color: '#903d50',
                enabled: true
            },
            normal: {
                animation:true
            },
            select: {
                borderColor: '#76a01e',
                borderWidth: '3px',
                color: '#76a01e',
                enabled: true 
            }
        },

在mapbubble系列中,但我没有任何运气。不确定如何访问选定的样式。这可能吗?

谢谢!

4

1 回答 1

1

据我所知,只有一种方法可以通过标记的 plotoption 实现您正在寻找的内容:

plotOptions: {
                mapbubble: {
                    marker: {
                        fillOpacity: 1,
                        fillColor: "#f06586",
                        states: {
                            select: {
                                fillColor: '#76a01e',
                                lineWidth: 2,
                                lineColor: '#76a01e'
                            },
                           hover: {
                               fillColor: '#903d50',
                               lineWidth: 3,
                                lineColor: '#903d50'
                            },

                        }
                    }
                }
            },

http://jsfiddle.net/67ex7kd7/9/

于 2015-08-05T09:50:39.807 回答