mapview.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html lang="en" id="htmlRoot">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <meta name="renderer" content="webkit" />
  7. <meta name="keywords" content="GIS数据支撑系统" />
  8. <meta name="description" content="GIS数据支撑系统" />
  9. <meta http-equiv="Expires" content="0" />
  10. <meta http-equiv="Cache-control" content="no-cache" />
  11. <meta http-equiv="Cache" content="no-cache" />
  12. <title>GIS数据支撑系统</title>
  13. <link rel="icon" href="/favicon.ico" />
  14. <style>
  15. body {
  16. margin: 0;
  17. padding: 0;
  18. overflow: hidden;
  19. -ms-overflow-style: none;
  20. scrollbar-width: none;
  21. }
  22. body::-webkit-scrollbar {
  23. display: none;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <script>
  29. window.onload = function () {
  30. var arr = window.location.href.split("?")
  31. if (arr.length && arr[1]) {
  32. const iframe = document.createElement('iframe');
  33. iframe.style.width = '100vw';
  34. iframe.style.height = '100vh';
  35. iframe.src = arr[1];
  36. document.body.appendChild(iframe);
  37. }
  38. }
  39. </script>
  40. </body>
  41. </html>