1.0.2 • Published 10 years ago

draw-maps v1.0.2

Weekly downloads
8
License
MIT
Repository
github
Last release
10 years ago

draw-maps

Drawable maps using svgs instead of image maps

Installation

Bower: bower install draw-maps --save

npm: npm install draw-maps

Example

The drawMaps() constructor accepts two arguments: the item selector and an options object.

drawMaps('.drawMap', {
    // options
});

Options

OptionTypeDefault ValueDescription
wrapImagesbooltrueWhether target should be wrapped
svgClassstring"drawMaps-map"Class attached to created svgs
regretKeystring"metaKey"Extended click functionality
closeKeystring"shiftKey"Extended click functionality
resetKeystring"altKey"Extended click functionality
fillColorstring"rgba(255, 0, 0, 0.3)"Path fill color
strokeColorstring"rgba(255, 0, 0, 0.5)"Path stroke color
strokeWidthnumber1Path stroke width
1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago