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.
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
Post a Comment