map = new ol.Map({
controls: ol.control.defaults({ attribution: false, zoom: false, rotate: false }).extend([
//new ol.control.LayerSwitcher({ trash: false, extent: true }),
//new ol.control.ScaleLine(),
//new ol.control.Zoom({ target: undefined}),
//new ol.control.Rotate({
// autoHide: true,
// label: “N”
//}),
//new ol.control.MeasureTool({ sphereradius: 6378137 })
]),
logo: ‘false’,
target: ‘map’,
view: new ol.View({
center: ol.proj.transform([116.715217, 39.515411], ‘EPSG:4326’, ‘EPSG:3857’),//坐标转换
zoom: 12,
}),
});
openlayer中如何隐藏默认的放大缩小及标志按钮
最新推荐文章于 2023-10-18 19:12:20 发布