Skip to content

Commit e420e57

Browse files
committed
Added map of Serbia.
1 parent 45a3507 commit e420e57

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

dist/maps/jquery.vmap.serbia.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/serbia.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4+
<head>
5+
<title>JQVMap - Serbia Map</title>
6+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
7+
<link href="../dist/jqvmap.css" media="screen" rel="stylesheet" type="text/css"/>
8+
</head>
9+
<body>
10+
<div id="vmap" style="width: 1052.3622px; height: 744.09448px;"></div>
11+
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
12+
<script type="text/javascript" src="../dist/jquery.vmap.js"></script>
13+
<script type="text/javascript" src="../dist/maps/jquery.vmap.serbia.js" charset="utf-8"></script>
14+
<script>
15+
jQuery(document).ready(function () {
16+
jQuery('#vmap').vectorMap({
17+
map: 'serbia',
18+
onRegionClick: function (element, code, region) {
19+
var message = 'You clicked "'+ region + '" which has the code: '+ code.toUpperCase();
20+
alert(message);
21+
}
22+
});
23+
});
24+
</script>
25+
</body>
26+
</html>

0 commit comments

Comments
 (0)