我試圖做一個「大綱只」地圖,道路內側全部是白的「人行道」輪廓顏色爲黑色。例如,我希望第14街和第5街看起來就像所有其他小街一樣。 (原諒醜陋的草圖)造型所有道路以突出其輪廓?
我使用的Style Wizard,很容易得到當地道路看起來像,但我堅持讓動脈和高速公路,以配合當地的樣子。它們要麼全是灰色的,要麼全是黑色的,並且幾乎沒有可見的輪廓。在默認的風格和最大變焦我可以應用樣式後看到一個淺灰色的輪廓的一個像素,但一無所獲。
這裏有一個live page和風格我使用
[
{
stylers: [
{ saturation: -100 }
]
},{
featureType: "road.local",
elementType: "geometry",
stylers: [
{ hue: "#ffe500" },
{ saturation: -45 },
{ gamma: 0.09 },
{ lightness: 12 }
]
},{
featureType: "road.highway",
elementType: "geometry",
stylers: [
{ hue: "#ffee00" },
{ invert_lightness: true },
{ saturation: -49 },
{ lightness: 99 },
{ gamma: 0.9 }
]
},{
featureType: "road.arterial",
elementType: "labels",
stylers: [
{ hue: "#0008ff" },
{ saturation: -95 },
{ lightness: -15 },
{ gamma: 0.94 }
]
}
]
感謝您嘗試,我想我可以用灰色的道路 – 2012-04-02 18:00:34