Map Area Outline

Is there anyway to place a border around a Map area?  I need to make it a polygon and it would help to see the outline.

	<map name="mapping">
					<area shape="poly" coords="300,180,350,160,400,255,250,400" href="#">
				<img src="<?php echo get_bloginfo('template_directory');?>/img/North_American.png" alt"Mapping" usemap="#mapping"/>

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Robert SchuttSoftware EngineerCommented:
You could use Image Mapster, I made a jsFiddle to show it:

You see the area when you hover over it and can click on it to show as a selected area. There is also a function to show the selection on page load but I haven't built that in.

Note that this version is using an old version of jQuery to match the version of the plugin I reference from the website.

A cleaned up copy of the code in the result frame of the fiddle:
<!DOCTYPE html>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title> - jsFiddle demo by robert_schutt</title>
<script type='text/javascript' src='//'></script>
<script type='text/javascript' src=""></script>
<script type='text/javascript'>
            fill: true,
            fillColor: '000000',
            fillColorMask: 'FFFFFF',
            fillOpacity: 0.5,
            stroke: true,
            strokeColor: 'ff0000',
            strokeOpacity: 1,
            strokeWidth: 1
  	<map name="mapping">
        <area shape="poly" coords="300,180,350,160,400,255,250,400" href="#"/>
	<img src="" alt="Mapping" usemap="#mapping"/>

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rgranlundAuthor Commented:
Do you think there is a way to add content to the "popup area" when you hover over it?
Robert SchuttSoftware EngineerCommented:
You mean like a tooltip? You could just use the title attribute on an area. I have updated the fiddle for an example.
Robert SchuttSoftware EngineerCommented:
There is also an example on the imagemapster website using much nicer styled (even interactive) tooltips:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.