javascript - Merge two svg path elements programatically -


i rendering map out of svg paths (using jvectormap).

there cases 1 region has merged neighboring region.

unfortunately both regions don't touch each other , have interpolate fill space in between.

merge 2 regions one

jvectormap uses simple svg paths m set the absolute startpoint , l connect relative points.

does of svg libraries cover such operation?

i haven't tried this, may around running the converter @ jvectormap following parameters:

--buffer_distance=0 --where="iso='region_1' or iso='region_2'" 

where region_1 , region_2 2 regions need merge.

solving problem way means generated svg paths true original coordinates, whereas following fix may lead (probably minor) inconsistencies.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -