Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

jQuery help, interacting with canvas... :(

I need some help adding pop up interactivity to my canvas map. I am really struggling with this. I want to add information to the areas on my map that have a stroke box when you click on the area.

linke: http://asu.thatphillipelkins.com/map.html

1 Answer

Hi Phillip,

Are you sure you need canvas for this? One way to add interactivity there is to upload the map as an image using the img tags and then tie a map tag to it in which you can define the necessary area.

Check the description of the tags here: http://www.w3schools.com/tags/tag_area.asp and the example of use here: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_areamap

Yes, I have to use canvas. It's for a class assignement.