在节点红色中更改线串的笔触颜色(与填充颜色不同)

时间:2019-08-06 02:40:12

标签: polygon geojson node-red multilinestring

我正在使用节点红色的世界地图,并且能够创建多边形和线串。但是我需要线串没有填充,并且不能区分线条颜色(笔触颜色)和填充颜色(总是有填充,就像是多边形一样)。

我已经尝试过了,但是没有运气:

"properties": {
    "stroke": "#555555",
    "stroke-width": 2,
    "stroke-opacity": 1,
    "fill": "#00f900",
    "fill-opacity": 0.5
},

这是我声明线串的地方:

 var geo = { "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "geometry": {
                "type": "LineString",
                "coordinates": [
                    [-1.356221,51.048611],
                    [-1.356039,51.048672],
                    [-1.355765,51.048311],
            ]
        },
        "properties": {
            "color": "rgb(168, 5, 57)",
        },
    }]
}

线串显示在地图上,但是,除了普通线外,它还作为背景,与线的颜色相同,就像是多边形一样。

Check the printscreen of the result here

0 个答案:

没有答案