mobile.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 - Europe Map</title>
  6. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  7. <!-- Mobile Specific Meta Tags -->
  8. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  11. <link href="../dist/jqvmap.css" media="screen" rel="stylesheet" type="text/css">
  12. <style>
  13. html, body {
  14. padding: 0;
  15. margin: 0;
  16. width: 100%;
  17. height: 100%;
  18. }
  19. #vmap {
  20. width: 100%;
  21. height: 100%;
  22. background-color: red;
  23. -webkit-tap-highlight-color: rgba(0,0,0,0);
  24. }
  25. .jqvmap-zoomin {
  26. width: 30px;
  27. height: 30px;
  28. line-height: 30px;
  29. }
  30. .jqvmap-zoomout {
  31. width: 30px;
  32. height: 30px;
  33. top: 55px;
  34. line-height: 30px;
  35. }
  36. </style>
  37. <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
  38. <script type="text/javascript" src="../dist/jquery.vmap.js"></script>
  39. <script type="text/javascript" src="../dist/maps/jquery.vmap.usa.js" charset="utf-8"></script>
  40. <script type="text/javascript">
  41. jQuery(document).ready(function () {
  42. jQuery('#vmap').vectorMap({
  43. map: 'usa_en',
  44. enableZoom: true,
  45. showTooltip: true
  46. });
  47. });
  48. </script>
  49. </head>
  50. <body>
  51. <div id="vmap"></div>
  52. </body>
  53. </html>