官方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>

本文介绍如何利用高德地图API,结合后台数据或IP定位,获取城市的行政区划边界和中心点坐标。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



