draw-maps

1.0.2 • Public • Published

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

Option Type Default Value Description
wrapImages bool true Whether target should be wrapped
svgClass string "drawMaps-map" Class attached to created svgs
regretKey string "metaKey" Extended click functionality
closeKey string "shiftKey" Extended click functionality
resetKey string "altKey" Extended click functionality
fillColor string "rgba(255, 0, 0, 0.3)" Path fill color
strokeColor string "rgba(255, 0, 0, 0.5)" Path stroke color
strokeWidth number 1 Path stroke width

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i draw-maps

      Weekly Downloads

      1

      Version

      1.0.2

      License

      MIT

      Last publish

      Collaborators

      • maeertin