2 Star 0 Fork 0

lsjun/lishoujun.github.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
map.html 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
lsjun 提交于 2017-07-17 17:29 +08:00 . Changes to be committed:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<style type="text/css">
.friend{
border: solid 1px #669CEE;
color: white;
float: left;
width: 80px;
background-color: #669CEE
}
</style>
<title>Friend Map</title>
<link rel="stylesheet" href="https://cache.amap.com/lbs/static/main1119.css"/>
</head>
<body>
<div id="container"></div>
<script src="https://webapi.amap.com/maps?v=1.3&key=af47cfc3bd61f966cdc587476f007730&callback=init"></script>
<script>
function init(){
var map = new AMap.Map('container', {
center: [116.467689,39.881778],
zoom: 12
});
map.plugin(["AMap.ToolBar"], function() {
map.addControl(new AMap.ToolBar());
});
<!-- friends -->
var content2= '<div class="friend">zhangsan</div>';
marker2 = new AMap.Marker({
position: [116.444189,39.884768],
offset: new AMap.Pixel(0,0),
map: map,
title: 'CTO 18888888888',
content: content2
});
}
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/008/lishoujun.github.io.git
git@gitee.com:008/lishoujun.github.io.git
008
lishoujun.github.io
lishoujun.github.io
main

搜索帮助