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

I can´t use raw html on areas content with maps #299

Closed FabianVCH closed 7 years ago

FabianVCH commented 7 years ago

I have an area like this: "MN": { "text": { "content": "MN (8)", "position": null }, "attrs": { "fill": "#bababa" }, "href": null, "attrsHover": { "fill": "#ffce34" } } If I use that area like that the content data is read as a normal string it didn´t recognize the html, but if I use it on a tooltip for example it works.

neveldo commented 7 years ago

Hi @FabianVCH ,

This is because the tooltip is displayed within a regular HTML div, so you can freel add HTML content. However, the text attribute aims to create a Text SVG node on the map, in wich you cannot add HTML content but only raw text.

Indigo744 commented 7 years ago

@FabianVCH can we close this issue or do you need more information?