地理数据时空查询UI模板:搜索、结果展示和地图集成
地理数据时空查询UI模板:搜索、结果展示和地图集成
本文提供一个简单易用的地理数据时空查询UI模板,包含搜索框、结果显示区域和地图展示区域,可轻松嵌入您的项目,实现地理数据快速查询与可视化展示。
HTML代码
<!DOCTYPE html>
<html>
<head>
<title>地理数据时空查询</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<h1>地理数据时空查询</h1>
<div class="search">
<input type="text" id="searchInput" placeholder="输入查询关键词">
<button id="searchButton">搜索</button>
</div>
<div class="results">
<h2>查询结果:</h2>
<ul id="resultList">
<!-- 查询结果将动态添加到这里 -->
</ul>
</div>
<div id="map"></div>
</div>
<script src="script.js"></script>
</body>
</html>
CSS代码 (style.css)
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 0;
}
.container {
max-width: 800px;
margin: 20px auto;
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
}
.search {
display: flex;
align-items: center;
margin-bottom: 20px;
}
#searchInput {
flex-grow: 1;
padding: 8px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 5px;
}
#searchButton {
padding: 8px 16px;
font-size: 16px;
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
.results {
margin-bottom: 20px;
}
#resultList {
list-style-type: none;
padding: 0;
}
#resultList li {
margin-bottom: 10px;
}
#map {
height: 400px;
border: 1px solid #ccc;
border-radius: 5px;
}
这是一个基本的地理数据时空查询的UI模板,其中包含了一个搜索框、结果显示区域和地图展示区域。你可以根据自己的需求进行进一步的修改和美化。
原文地址: https://www.cveoy.top/t/topic/feOt 著作权归作者所有。请勿转载和采集!