Map to SVG conversion library
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
src
.gitignore
Gruntfile.js
LICENSE
README.md
index.html
maptosvgtests.js
package.json

README.md

Map to SVG

Convert image maps to an exact SVG representation

Install

<script src="maptosvg.js" async defer></script>

Usage

At the moment, conversion is done by means of passing the id of your image—The image that needs the map— to the SVGM function. This function returns an SVG element which can be added to the DOM in whatever manner you choose.

Example

https://jsfiddle.net/6u1yjzah/3/