官方API
https://editor.youkuaiyun.com/md/?not_checkout=1
思路:
1、后台返回城市 或 着通过IP地址自动定位城市
2、通过城市获取行政区边界 和中心点
<!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">
<title>自定义图层</title>
<link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
<style>
html,body,#container {
width: 100%;
height: 100%;
}
</style>
</head>
<body>