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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -