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

Google sheets equipment borrowing system -

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

c# - Convert type 'System.Collections.Generic.List<string>' to 'System.Collections.Generic.IList<>' -