mirror of
https://github.com/30hours/3lips.git
synced 2024-11-08 12:25:42 +00:00
Remove cesium submodule grr
This commit is contained in:
parent
93ec65c766
commit
d48dc7889a
4 changed files with 39 additions and 8 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -1,4 +0,0 @@
|
|||
[submodule "cesium"]
|
||||
path = src/public/cesium
|
||||
url = https://github.com/CesiumGS/cesium.git
|
||||
branch = 1.114.0
|
|
@ -44,9 +44,11 @@ def api():
|
|||
data = [{"url": 'http://' + url} for url in urls]
|
||||
return jsonify(data)
|
||||
|
||||
@app.route("/map")
|
||||
def map_page():
|
||||
return render_template("map.html")
|
||||
@app.route("/map/<path:file>")
|
||||
def serve_map(file):
|
||||
base_dir = os.path.abspath(os.path.dirname(__file__))
|
||||
public_folder = os.path.join(base_dir, 'map')
|
||||
return send_from_directory(public_folder, file)
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True)
|
||||
|
|
34
src/map/index.html
Normal file
34
src/map/index.html
Normal file
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Use correct character set. -->
|
||||
<meta charset="utf-8" />
|
||||
<!-- Tell IE to use the latest, best version. -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
|
||||
/>
|
||||
<title>Hello World!</title>
|
||||
<script src="/public/cesium/Build/CesiumUnminified/Cesium.js"></script>
|
||||
<style>
|
||||
@import url(/public/cesium/Build/CesiumUnminified/Widgets/widgets.css);
|
||||
html,
|
||||
body,
|
||||
#cesiumContainer {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="cesiumContainer"></div>
|
||||
<script>
|
||||
const viewer = new Cesium.Viewer("cesiumContainer");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1 +0,0 @@
|
|||
Subproject commit f30c70b5dacb52ec66081ce643f5f24b2036df2f
|
Loading…
Reference in a new issue