https://developer.baidu.com/map/custom/
var styleJson = [
// 全局颜色
{“featureType” : “land”,
“elementType” : “all”,
“stylers” : {
“color” : “#05154b”
}
},
// 标注的字体颜色
{
“featureType” : “all”,
“elementType” : “labels.text.fill”,
“stylers” : {
“color” : “#cccccc”
}
},
//标注字体发光颜色
{
“featureType” : “all”,
“elementType” : “labels.text.stroke”,
“stylers” : {
“color” : “#cccccc”
}
},
//河流颜色
{
“featureType” : “water”,
“elementType” : “all”,
“stylers”: {
“color” : “#0937a6”
}
},
//人工地形颜色
{
“featureType” : “manmade”,
“elementType” : “all”,
“stylers” : {
“color” : “#104b9c”
}
},
//建筑物
{
“featureType” : “building”,
“elementType” : “all”,
“stylers” : {
“color” : “#15296d”
}
},
{
“featureType” : “green”,
“elementType” : “all”,
“stylers” : {
“color” : “#303e6c”
}
}, {
“featureType” : “arterial”,
“elementType” : “all”,
“stylers” : {
“color” : “#104b9c”
}
}, {
“featureType” : “local”,
“elementType” : “all”,
“stylers” : {
“color” : “#1F3048”
}
},
//文字
{
“featureType” : “arterial”,
“elementType” : “labels.text.fill”,
“stylers” : {
“color” : “#cccccc”
}
},
//道路
{
“featureType”: “road”,
“elementType”: “all”,
“stylers”:{
“color”:"#192e64"
}
}];
百度地图在线编辑器
最新推荐文章于 2021-01-23 11:54:24 发布