kemayo/maphilight — pull request #23 by herve-lefouler (2012-09-28 10:52:20+00:00)
Title: Per area options for maphilight

Hi kemayo,

I ve just commit a new functionnality for your very nice plugin maphilight. It gives the opportunity to define specific options for each areas of a map.

For example, you can now define specific colors for each area.
If no specific options are defined for an area, default options are used.

The per area options are implemented this way :

1- each area should have an optionnal id in HTML code
2- for each area with an id in HTML, you should define specific options for them, in an areas array, wich is include in options area.

By this way, you should define specific options for all attributes of your plugin.

Here is an example of code :

HTML Map Code :
```

```

JQuery Code :

```
$('.map').maphilight({
fillColor: '000000',
areas : {
'categorie-1' : {
fillColor: 'ea1c5e'
},
'categorie-2' : {
fillColor: '94dbd8'
},
'categorie-3' : {
fillColor: 'f39094'
},
'categorie-4' : {
fillColor: 'f24ea0'
},
'categorie-5' : {
fillColor: 'ee5343'
},
'contact' : {
neverOn: true
}
}
});
```

If you are interessed by this functionnality, i can help you to update the documentation.

Regards,

Hervé.