File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,9 +134,10 @@ function buildSVGGradientPath (geojson, coordinates) {
134134 if ( stroke ) {
135135 const color = _ . get ( stroke , 'color' , 'black' )
136136 const width = _ . get ( stroke , 'width' , 1 )
137+ const opacity = _ . get ( stroke , 'opacity' , 1 )
137138 if ( color !== 'transparent' && width > 0 ) {
138139 const border = coordinates . map ( ( p , i ) => i === 0 ? `M ${ p . x } ${ p . y } ` : `L ${ p . x } ${ p . y } ` ) . join ( ' ' )
139- lines . push ( `<path d="${ border } " stroke="${ color } " stroke-width="${ geojson . properties . weight + 2 * width } " stroke-linecap="round" stroke-linejoin="bevel" fill="none" vector-effect="non-scaling-stroke"/>` )
140+ lines . push ( `<path d="${ border } " stroke="${ color } " stroke-width="${ geojson . properties . weight + 2 * width } " stroke-opacity=" ${ opacity } " stroke- linecap="round" stroke-linejoin="bevel" fill="none" vector-effect="non-scaling-stroke"/>` )
140141 }
141142 }
142143 // Build the gradient path segment by segment
You can’t perform that action at this time.
0 commit comments