Commit 3bbdfba8 authored by 耿迪迪's avatar 耿迪迪

地图控件 gengdidi

parent 5c6c40c8
......@@ -231,10 +231,14 @@ class gaodeMap {
}
amapLoader(){
map.addControl(new AMap.MapType({
defaultType:0, //0代表默认,1代表卫星
showRoad:true//显示路况(右上角也可点击)
}));
AMap.plugin(['AMap.ToolBar','AMap.Scale','AMap.OverView','AMap.MapType','AMap.Geolocation'],function(){
//创建并添加工具控件,上下左右移动,以及缩放
//map.addControl(new AMap.ToolBar());
map.addControl(new AMap.Scale());
//map.addControl(new AMap.OverView({isOpen:true}))
map.addControl(new AMap.MapType());
//map.addControl(new AMap.Geolocation());
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment