Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.0k views
in Technique[技术] by (71.8m points)

请问高德地图怎么设置中心点center?还有坐标点的position值?

请问高德地图怎么设置中心点center?还有坐标点的position值?
我想设置坐标点为四川省成都市高新区天府四街银泰城
中心点的话。是不是也是一样的啊?
我不知道去哪儿获得坐标值。搜了半天资料没找到呢


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

https://lbs.amap.com/console/...
这里可以获取想要位置的经纬度
image.png

var map = new AMap.Map('container', {
        resizeEnable: true,
        zoom:11,
        center: [104.060547,30.542073] // 四川省成都市高新区天府四街银泰城 坐标
 });

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...