Mapify – image maps for html projects!

Responsive and stylable image maps for html using jQuery, SVG and CSS3.

Image maps for html projects

Mapify plugin brings responsive and stylable image maps using jQuery, SVG and CSS3. Tested with Chrome, Firefox, Safari ( Desktop & Mobile ), internet explorer 10 & 11 using jQuery 1.8.1.

Built with:

– Grunt – The JavaScript Task Runner

– jQuery – A fast, small, and feature-rich JavaScript library

Sass – Syntactically Awesome Style Sheets

Mapify - image maps
Mapify – image maps


Embed jquery.mapify.css and jquery.mapify.js in your page and call the plugin with the initializer.



Sample – Popovers

  popOver: {
    content: function(zone){ 
      return "<strong>"+zone.attr("data-title")+"</strong>"+zone.attr("data-nbmembre")+" Members";
    delay: 0.7,
    margin: "15px",
    height: "130px",
    width: "260px"

Stylable with CSS! Sample:

	background: #09f;

	stroke: #fff;
	stroke-width: 2;
	stroke: #fff;
	stroke-width: 2;

	fill: #09f;
	stroke: #fff;
	stroke-width: 2;

Sample map – basic

Step 1: Add your image to the body (Can be SVG, PNG or JPG). Make sure you specify the width, height and usemap attribute for your image. The specified width and height must match the native size of the image.

<img src="map.svg" width="578px" height="716px" border="0" usemap="#Map" />

Step 2: Add your map to the body (After your image). You need to set the name attribute of your map with the same value as the id. Mapify works only when the shape attribute is set to poly.

<map name="Map" id="Map">
	<area href="#" shape="poly" coords="92.394,40.738,
	137.32,28.445,122.657,13.483,92.394,40.738" />

Step 3: Embed jQuery, the Mapify script and call the plugin like this.


License: MIT

Homepage / docs / demo
Mapify – image maps



See also

Leaflet: open-source JavaScript library for mobile-friendly interactive maps

Github-like calendar heatmap – Cal-Heatmap

JavaScript SVG animation library – Vivus.js

SVG with JavaScript – svg.js and others

Enjoy awesome image maps!