usa.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 - USA 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.usa.js" charset="utf-8"></script>
  11. <script>
  12. jQuery(document).ready(function () {
  13. jQuery('#vmap').vectorMap({
  14. map: 'usa_en',
  15. enableZoom: true,
  16. showTooltip: true,
  17. selectedColor: null,
  18. hoverColor: null,
  19. colors: {
  20. mo: '#C9DFAF',
  21. fl: '#C9DFAF',
  22. or: '#C9DFAF'
  23. },
  24. onRegionClick: function(event, code, region){
  25. event.preventDefault();
  26. }
  27. });
  28. });
  29. </script>
  30. </head>
  31. <body>
  32. <div id="vmap" style="width: 600px; height: 400px;"></div>
  33. </body>
  34. </html>