Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 918 Bytes

README.md

File metadata and controls

42 lines (26 loc) · 918 Bytes

#Japan Map (jQuery plugin)

jQuery plugin to show clickable map of prefectures (or area) of Japan.

[Download, Quick Start, Examples, Usage] (http://takemaru-hirai.github.io/japan-map/)

Installation

Include the script after the jQuery library:

<script src="/path/to/jquery.japan-map.js"></script>

Usage

Creating the clickable map of Japan:

$(target).japanMap( options );

EXAMPLE - Alert prefecture name when clicked:

$(target).japanMap({
    onSelect : function(data){
        alert(data.name);     // "北海道" (Hokkaido) will be shown on dialog when you click Hokkaido Island.
    }
});

Please visit [the Project Page] (http://takemaru-hirai.github.io/japan-map/) to see more informations.

Authors

Takemaru Hirai

##License

Japan Map is released under the MIT License.