themes/index/map/gaode.html
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>map</title>
</head>
<style>
#tip {
background-color: #ddf;
color: #333;
border: 1px solid silver;
box-shadow: 3px 4px 3px 0px silver;
position: absolute;
top: 10px;
right: 10px;
border-radius: 5px;
overflow: hidden;
line-height: 20px;
}
#tip input[type="text"] {
height: 25px;
border: 0;
padding-left: 5px;
width: 280px;
border-radius: 3px;
outline: none;
}
</style>
<body>
<div id="map" style="width: 100%;height: 100%; position: relative;"></div>
<div id="tip">
<input type="text" autocomplete="off" id="keyword" name="keyword" value="请输入关键字:(选定后搜索)" onfocus='this.value=""'/>
</div>
<script src="https://webapi.amap.com/maps?v=1.4.15&key={$key}"></script>
<script type="text/javascript" src="https://cache.amap.com/lbs/static/addToolbar.js"></script>
<script type="text/javascript">
var parentIframe = window.parent.document.getElementById("mapFrame");
document.getElementById("map").style.height=parentIframe.style.height;
var map = new AMap.Map('map', {
resizeEnable: true,
center:[117.000923,36.675807],
zoom:16,
/*layers:[
new AMap.TileLayer.Satellite(),
new AMap.TileLayer.RoadNet()
]*/
});
{if $lat==0}
AMap.plugin('AMap.Geolocation', function() {
var geolocation = new AMap.Geolocation({
// 是否使用高精度定位,默认:true
enableHighAccuracy: true,
// 设置定位超时时间,默认:无穷大
timeout: 10000,
// 定位按钮的停靠位置的偏移量,默认:Pixel(10, 20)
后面还有 55 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。