博主第二发作业~
一切从简
这里主要用了百度地图的API感兴趣的各位可以去搜一下,里面有很实用的地图功能
在1.5以上的API是需要ak密钥的
效果图,
HTML
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.4"></script>
<title>无标题文档</title>
<style>
#map{
border: 2px solid;
width: 600px;
height: 600px;
}
</style>
<script type="text/javascript" src="js/coordinate.js" ></script>
</head>
<body onLoad="getCoords()">
<center>
<div id