iraq.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 - Iran 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. <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
  9. <script type="text/javascript" src="../dist/jquery.vmap.js"></script>
  10. <script type="text/javascript" src="../dist/maps/jquery.vmap.iraq.js" charset="utf-8"></script>
  11. <script type="text/javascript">
  12. jQuery(document).ready(function () {
  13. jQuery('#vmap').vectorMap({
  14. map: 'iraq',
  15. backgroundColor: '#fff',
  16. borderColor: '#818181',
  17. borderOpacity: 0.25,
  18. borderWidth: 1,
  19. color: '#eee',
  20. enableZoom: false,
  21. hoverColor: '#DA251D',
  22. hoverOpacity: null,
  23. normalizeFunction: 'linear',
  24. selectedColor: '#fff',
  25. showTooltip: true,
  26. onRegionClick: function (element, code, region) {
  27. var message = 'You clicked "'
  28. + region
  29. + '" which has the code: '
  30. + code.toUpperCase();
  31. alert(message);
  32. }
  33. });
  34. });
  35. </script>
  36. </head>
  37. <body>
  38. <div id="vmap" style="width: 612px; height: 600px;"></div>
  39. </body>
  40. </html>