高德地图如何将比例尺放大到10米?

原创
2017/12/29 14:27
阅读数 5.3K
var map = new AMap.Map('container', {
    resizeEnable: true,
    expandZoomRange:true,
    zoom:20,
    zooms:[3,20],
    center: [116.397428, 39.90923]
});
alert(map.getZoom());

http://lbs.amap.com/faq/web/javascript-api/expand-zoom-range/?wd=%E7%BC%A9%E6%94%BE&cateId=307&page=&detail=true

如果有使用TileLayer贴图转换的,要修改一个转换的参数,如下面这个链接显示不了

https://grid.amap.com/grid/19/427247/227424?dpiType=webrd&lang=zh_cn&pack=com.iznet.thailandtong&version=3.3.0

但这个链接可以

https://grid.amap.com/grid/19/427247/227424?dpiType=&lang=zh_cn&pack=com.iznet.thailandtong&version=3.3.1

补充知识:最新的ios系统(11.0之后)如果要使用定位,网页使用的是https的话,必须保证所有加载的资源都是https协议的,否则定位会失败(包括引用高德地图的js库方法也失败)。

展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部