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

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

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -