设置GeoJSONVectorTileLayer中的line填充图片
设置GeoJSONVectorTileLayer中的line填充图片
关键:linePatternFile
const style = [{
filter: true,
renderPlugin: {
dataConfig: {
type: "line",
},
type: "line",
},
symbol: {
linePatternFile: "http://examples.maptalks.com/resources/patterns/line-pattern.png",
// lineColor: "#1bbc9b",
lineWidth: 20,
lineStrokeColor: [0.8, 0.2, 0.2],
lineStrokeWidth: 20,
lineOpacity: 1,
},
}, ];