views:

66

answers:

3

I need to put a map in a webpage and I need that when the users clicks on certain area inside city limits on the map the user is redirected.

Wich is the best way without using Flash?

  • Define Hover polingons on a image.
  • SVG on the browser.
  • Some sort of Javascript, jQuery magical plugin out there?
  • Google Maps?

And example could be this but It's flash.

+2  A: 

Well, for the basic functionality, a good ol' fashioned client side image map (http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.6.1 ) would do the job nicely.

I'm not sure that there's any built-in way to get them to display hover behaviors, though. The cursor will definitely change, but I don't think you can style <area> elements.

With Google maps: what you're looking for is KML (http://code.google.com/apis/kml/documentation/whatiskml.html ).

Weston C
+2  A: 

You could use the HTML map tag.

http://www.w3schools.com/tags/tag_map.asp

Germ
+2  A: 

You should check this jquery plugin , I think that is exactly what you need

http://plugins.jquery.com/project/maphilight

byroncorrales
thanks amazing!!
Fitoria