• Stars
    star
    163
  • Rank 231,141 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

#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.