Position text in top of a dinamically generated map area of type poly
- by Guillermo Vasconcelos
Hi,
I have a web page with a dynamically generated image map (from a server side charting tool that I have no control over). I have a value for each area in the title attribute that I want to display on top of the image. I could dynamically generate span elements with absolute positioning, but I'm not sure how to calculate the "center" of a poly shaped area to use as coordinates.
Is there an easy way to create texts for image map areas? a JQuery plug in perhaps?
Do you know a good way to calculate the center of a poly area?
Do you have any other suggestions?
Thanks,
Guillermo