how to visualise/debug an imagemap?
Asked Answered
E

6

22

I'm dynamically generating an imagemap for a chart tool I have.

I was hoping to be able to set a border or color on the area tags so I could check everything was being generated with the right coords, but a little research shows this is not possible.

So whats the easiest way to check my image map is correct? Are there any browser tools which will "visualise" the areas?

Engrossment answered 4/1, 2010 at 11:4 Comment(0)
N
7

What about using JavaScript (and jQuery) to test it?

http://davidlynch.org/js/maphilight/docs/demo_usa.html

This plugin will highlight image map areas.

Nephelinite answered 4/1, 2010 at 11:9 Comment(0)
S
6

You can use FireBug for that:

  • Right-click your image and choose "Inspect Element with FireBug"
  • In the HTML tab of Firebug, the image tag is highlighted: locate and expand the associated map tag, which usually is right after it
  • You can now place your mouse over each area tags to see them highlighted over your image
Stradivarius answered 25/3, 2014 at 15:52 Comment(0)
N
6

One way to visualize an area tag in Chrome is to add a tabindex to the area tag(s) you want to see, and then click or tab to it. Chrome will nicely highlight the actual outline of the clickable area.

This solution unfortunately doesn't work in Firefox.

Neldanelia answered 23/9, 2017 at 2:57 Comment(0)
F
5

Image Map Editor is a plug-in for Firefox. It is the best tool I have found so far, makes creating, inspecting, and editing image maps very easy.

Frolic answered 5/1, 2016 at 11:42 Comment(0)
A
4

In Chrome you can select the area of the image map and click on the three little dots to the left and then select "focus"

enter image description here

Armin answered 7/2, 2021 at 12:10 Comment(0)
M
1

Never thought I would ever say that, but this is one of the few cases where Dreamweaver could be helpful. You'll have an interface, you will be able to work with anchor points and set your imagemap easily.

Millwork answered 11/7, 2012 at 13:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.