neveldo / jQuery-Mapael

jQuery plugin based on raphael.js that allows you to display dynamic vector maps
https://www.vincentbroute.fr/mapael/
MIT License
1.01k stars 195 forks source link

Possible to use legent as href to highlight map areas? #227

Closed Dariusz-dc closed 7 years ago

Dariusz-dc commented 8 years ago

Hello, I need to do something like this:

neveldo commented 8 years ago

Hello @Dariusz-dc , I not sure to understand what behavior you want to get with mapael ,could you explain more ? It seems that your need matches with this example : http://jsfiddle.net/neveldo/TUYHN/ where areas (departments) are linked to a legend item. When the user clicks on a legend item , it shows the related areas in a different opacity.

Dariusz-dc commented 8 years ago

Hi @neveldo, thank you for your replay. I want to do something like your example, but I need to link every department to a legend item separately, so the effect will be like this. The user clicks on Nord in the legend, and then the department changes color.

neveldo commented 8 years ago

Indeed you can do it by creating a legend with as many slices as departments. You can use fixed values for each slice related to a department (take a look at the documentation and examples regarding fixed value slice)

Indigo744 commented 7 years ago

@Dariusz-dc do you still need help or can we close this issue?

Dariusz-dc commented 7 years ago

No, all good. Thanks