jamietre/ImageMapster — Issue #51: Allow options as attributes
Author: jamietre
Created: 2012-03-06 11:59:34+00:00
State: open
Labels: new feature

Specification for describing options in 1.3

Allow passing any options as an attribute on the image:

data-mapster='{"json": data}'

Allow area-specific options on area tags using same convention
Options can be specificed either as JSON data, or using the attribute name

data-mapster='{"strokeWidth": 2}'
data-mapster-strokeWidth="2"

While not especially byte-efficient, should greatly simplify config, especially for users with limited javascript knowledge.