1 Star 0 Fork 1

ZPPeter/ytu_map

forked from 苏浩/ytu_map 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 4.14 KB
一键复制 编辑 原始数据 按行查看 历史
<!DOCTYPE html>
<html lang="en">
<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>烟大地图-Leaflet</title>
<link rel="stylesheet" href="./css/leaflet.css" />
<link rel="stylesheet" href="./css/main.css" />
</head>
<body>
<!-- 搜索 -->
<div class="search-container">
<div class="search-input">
<input
type="输入关键字进行检索"
class="search-input-inner"
placeholder="输入名称进行搜索"
/>
</div>
<div class="search-result">
<ul></ul>
</div>
</div>
<!-- 图层工具 -->
<div class="layer-control-container">
<div class="layer-control-switch" onclick="toggleLayerControl(this)">
<img src="./assets/icons/layer.svg" status="close" width="30px" id="layer-switch" />
</div>
<div class="control-content">
<div class="trace-control">
<div class="title">
<h1>轨迹</h1>
</div>
<div class="trace-control-content">
<!-- 轨迹回放 -->
<div class="trace-way">
<select
id="trace"
onchange="handleTraceChoosed()"
placeholder="请选择轨迹"
>
<option value="undefined">未选择</option>
<option speed="60">宿舍-图书馆</option>
<option speed="60">图书馆-七餐</option>
<option speed="30">宿舍-五教</option>
<option speed="50">宿舍-一餐</option>
<option speed="15">七餐-宿舍</option>
<option speed="40">宿舍-机房</option>
<option speed="50">机房-七餐</option>
</select>
</div>
<div class="btns">
<button onclick="redrawTrace()">开始</button>
<button onclick="pauseOrPlay()" id="controlBtn" type="pause">
暂停
</button>
<button onclick="stopTrace()">停止</button>
</div>
</div>
</div>
<!-- 图层聚焦 -->
<div class="layer-focus">
<div class="title">
<h1>图层聚焦</h1>
</div>
<div class="layer-focus-content">
<button onclick="locateLayer('diningRoom')">餐厅</button>
<button onclick="locateLayer('academicBuildings')">教学楼</button>
<button onclick="locateLayer('dormitory')">宿舍</button>
<button onclick="locateLayer('lake')">三元湖</button>
</div>
</div>
<!-- 图层显隐控制 -->
<div class="layer-control-content"></div>
</div>
</div>
<div id="map"></div>
</body>
<script>
const baseServer = '/map'
</script>
<script src="./js/menu.js"></script>
<script src="./js/turf5.min.js"></script>
<script src="./js/leaflet.js"></script>
<script src="./plugin/patternUtils.js"></script>
<script src="./plugin/symbol.js"></script>
<script src="./plugin/polylineDecorator.js"></script>
<script src="./plugin/moving-marker.js"></script>
<script src="./js/handler.js"></script>
<script src="./js/util.js"></script>
<script src="./js/variable.js"></script>
<script src="./js/colorizer.js"></script>
<script src="./js/index.js"></script>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/zppeter/ytu_map.git
git@gitee.com:zppeter/ytu_map.git
zppeter
ytu_map
ytu_map
master

搜索帮助