路网去除:
map.setMapStyle({
styleJson: [{
"featureType": "road",
"elementType": "all",
"stylers": {
"color": "#ffffff",
"visibility": "off"
}
},
// {
// "featureType": "building",
// "elementType": "all",
// "stylers": {
// "visibility": "off"
// }
// },
// {
// "featureType": "poilabel",
// "elementType": "all",
// "stylers": {
// "visibility": "off"
// }
// },
// {
// "featureType": "manmade",
// "elementType": "all",
// "stylers": {
// "visibility": "off"
// }
// },
]
});
设置为卫星图(非混合):
var map = new BMap.Map("container", {
enableMapClick: false,
mapType: BMAP_SATELLITE_MAP // 默认为卫星图
});
// BMAP_SATELLITE_MAP,BMAP_NORMAL_MAP,BMAP_HYBRID_MAP