Create a map with clickable provinces/states using SVG, HTML/CSS, ImageMap

后端 未结 4 2086
抹茶落季
抹茶落季 2020-12-23 07:23

I am trying to create an interactive map where users can click on different provinces in the map to get info specific to that province.

Example:

  • arc

4条回答
  •  甜味超标
    2020-12-23 08:07

    Just in case anyone will search for it - I used it on several sites, always the customization and RD possibilities were a perfect fit for what I needed. Simple and it is free to use:

    Clickable CSS Maps

    One note for more scripts on a site: I had some annoying problems with getting to work a map (that worked as a graphic menu) in Drupal 7. There where many other script used, and after handling them, I got stuck with the map - it still didn't work, although the jquery.cssmap.js, CSS (both local) and the script in the where in the right place. Firebug showed me an error and I suddenly eureka - a simple oversight, I left the script code as it was in the example and there was a conflict. Just change the front function "$" to "jQuery" (or other handler) and it works perfect. :]

    Here's what I ment (of course you can put it before instead of the ):

提交回复
热议问题