From 7976e60dfd49be4d2f68d2b371353df6637aee91 Mon Sep 17 00:00:00 2001 From: TreeWish <1131093754@qq.com> Date: 星期二, 07 二月 2023 14:48:58 +0800 Subject: [PATCH] 二维地图比例尺&指北针 --- public/index.html | 91 +++++++++++++++++++++++++++++---------------- 1 files changed, 59 insertions(+), 32 deletions(-) diff --git a/public/index.html b/public/index.html index ff33c66..7becb65 100644 --- a/public/index.html +++ b/public/index.html @@ -1,39 +1,66 @@ <!DOCTYPE html> <html lang=""> + <head> + <meta charset="utf-8" /> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <meta name="viewport" content="width=device-width,initial-scale=1.0" /> + <title> </title> -<head> - <meta charset="utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <meta name="viewport" content="width=device-width,initial-scale=1.0"> - <title> - </title> + <link rel="stylesheet" href="./SmartEarthSDK/Workers/css/smartearth.css" /> + <link rel="stylesheet" href="./SmartEarthSDK/Workers/layui/css/layui.css" /> - <link rel="stylesheet" href="./SmartEarthSDK/Workers/css/smartearth.css"> - <link rel="stylesheet" href="./SmartEarthSDK/Workers/layui/css/layui.css"> + <script src="./SmartEarthSDK/Workers/polyfill.min.js"></script> + <script src="./SmartEarthSDK/Cesium/Cesium.js"></script> + <script src="./SmartEarthSDK/SmartEarth.min.js"></script> + <script src="./SmartEarthSDK/Workers/TreeTool.js"></script> + <script src="./config/config.js"></script> + <script src="./config/rsa.min.js"></script> + <script src="./config/rollups.js"></script> - <script src="./SmartEarthSDK/Workers/polyfill.min.js"></script> - <script src="./SmartEarthSDK/Cesium/Cesium.js"></script> - <script src="./SmartEarthSDK/SmartEarth.min.js"></script> - <script src="./SmartEarthSDK/Workers/TreeTool.js"></script> - <script src="./config/config.js"></script> - <script src="./config/rsa.min.js"></script> - <script src="./config/rollups.js"></script> + <style> + .esriControlsBR { + display: none; + } - <style> - .esriControlsBR { - display: none; - } + .ol-overlaycontainer-stopevent { + /* display: none; */ + } + .ol-control button { + display: block; + margin: 1px; + padding: 0; + color: rgb(102, 102, 102); + font-weight: bold; + text-decoration: none; + font-size: inherit; + text-align: center; + height: 1.375em; + width: 1.375em; + line-height: 0.4em; + background-color: #fff; + border: none; + border-radius: 2px; + } + .ol-full-screen { + position: absolute; + right: 0.5em; + top: 0.5em; + } + .ol-rotate { + position: absolute; + top: 3em; + right: 0.5em; + transition: opacity 0.25s linear, visibility 0s linear; + } + .ol-scale-line { + right: 0.3em; + bottom: 0.5em; + position: absolute; + } + </style> + </head> - .ol-overlaycontainer-stopevent { - display: none; - } - </style> -</head> - -<body> - - - <div id="app"></div> -</body> - -</html> \ No newline at end of file + <body> + <div id="app"></div> + </body> +</html> -- Gitblit v1.9.3