Search code examples
htmldictionaryarea

html area tag with holes


The problem I have about using the map & area tag is that I havent been able to find out a solution to having "holes" in the area, for example imagine a lake on map, you dont want that area to be clickable.

Example code:

http://jsfiddle.net/WbKqS/

In this example I have placed 3 lakes on the map but I dont want the lakes to have the hovereffect/being clickable, is this possible? Maybe with another technique?


Solution

  • HTML areas don't support having holes or multiple sets of coords, so you'll need to go with a workaround.

    How about a solution based on the approach illustrated below?

    area with fake hole