var myStyleJson = [
{
"featureType": "water",//水路
"elementType": "all",
"stylers": {
"color": "#00ffffff",
"weight": "5.6"
}
},{
"featureType": "poilabel",//兴趣点
"elementType": "all",
"stylers": {
"visibility": "off"
}
},{
"featureType": "town",//乡镇
"elementType": "all",
"stylers": {
"visibility": "off"
}
},{
"featureType": "district",//区县
"elementType": "all",
"stylers": {
"visibility": "off"
}
},{
"featureType": "subway",//地铁
"elementType": "all",
"stylers": {
"visibility": "off"
}
},{
"featureType": "railway",//铁路
"elementType": "all",
"stylers": {
"visibility": "off"
}
}
];
map.setMapStyle({styleJson: myStyleJson});
使用百度地图的api,将一些道路和公共设施隐藏了,然后凸显了水路,但是好多水路没有名称,请问百度地图里面是没有这些江流湖泊的名称,还是需要使用名称的ap,现在需要将江流湖泊的名称显示出来,如果可以设置更好