world.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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 - World 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.world.js" charset="utf-8"></script>
  11. <script type="text/javascript" src="js/jquery.vmap.sampledata.js"></script>
  12. <script>
  13. jQuery(document).ready(function () {
  14. jQuery('#vmap').vectorMap({
  15. map: 'world_en',
  16. backgroundColor: '#333333',
  17. color: '#ffffff',
  18. hoverOpacity: 0.7,
  19. selectedColor: '#666666',
  20. enableZoom: true,
  21. showTooltip: true,
  22. scaleColors: ['#C8EEFF', '#006491'],
  23. values: sample_data,
  24. normalizeFunction: 'polynomial'
  25. });
  26. });
  27. </script>
  28. </head>
  29. <body>
  30. <div id="vmap" style="width: 600px; height: 400px;"></div>
  31. </body>
  32. </html>