vue+openlayers的控件如何调整到右上角?
mounted(){
this.map = new Map({//1.创建地图对象 new Map()
target: 'map', //2.绑定 div 元素
layers:[ //图层数组 layers
new TileLayer({
name:'天地图',
source: new XYZ({
crossOrigin:'anonymous',
url:'https://t0.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=d6539c1747bf5296bfe35b02151d761a%27
})
}),
new TileLayer({
name:'注记',
source: new XYZ({
crossOrigin:'anonymous',
url:'https://t0.tianditu.gov.cn/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=d6539c1747bf5296bfe35b02151d761a%27
})
})
],
view: new View({//视图 View
projection:"EPSG:4326",
center:[106.55,29.57],
zoom:10
}),
//缩放滑块控件
controls:defaultControls({//默认控件\
zoom:true,
rotate:false,
attribution:false,
}).extend([//添加新控件
new Rotate,
new FullScreen(),
]),
})
},
}