2012-07-04 71 views
9

我試圖設計一個Google地圖來匹配我所設計的設計,並且在設計上,所有國家的以外的地方都有的中風,以及劃分邊界時的中風。造型谷歌地圖 - JavaScript API v3 - 海岸線概述?

我要去的效果如下: enter image description here

我對造型代碼是目前如下:

var styles = [ 
     { 
      featureType: "water", 
      stylers: [ 
      { visibility: "on" }, 
      { color: "#ffffff" } 
      ] 
     },{ 
      featureType: "landscape", 
      stylers: [ 
      { color: "#f7f7f5" } 
      ] 
     },{ 
      featureType: "road", 
      stylers: [ 
      { visibility: "off" } 
      ] 
     },{ 
      featureType: "poi", 
      stylers: [ 
      { visibility: "off" } 
      ] 
     },{ 
      featureType: "administrative.country", 
      stylers: [ 
      { color: "#d2cdcd" }, 
      { weight: 1 } 
      ] 
     },{ 
      featureType: "administrative.country", 
      elementType: "labels", 
      stylers: [ 
      { visibility: "off" } 
      ] 
     },{ 
      featureType: "administrative.province", 
      elementType: "geometry", 
      stylers: [ 
      { visibility: "off" } 
      ] 
     },{ 
      featureType: "administrative.locality", 
      elementType: "labels", 
      stylers: [ 
      { visibility: "off" } 
      ] 
     },{ 
      featureType: "administrative.province", 
      elementType: "labels", 
      stylers: [ 
      { visibility: "off" } 
      ] 
     },{ 
      featureType: "water", 
      elementType: "geometry.stroke", 
      stylers: [ 
      { color: "#4cfff5" } 
      ] 
     } 
     ]; 

如果有什麼我以後是可能的任何想法?

謝謝!

編輯:上述風格給我下面的

enter image description here

+0

你可以發佈這些風格設置給你的屏幕截圖嗎? –

+0

我確實可以看到我上面更新的問題。 – Probocop

+1

恐怕你不能用樣式化的地圖來做到這一點。 –

回答

2

您目前只能定義爲填充水,但沒有輪廓。

+0

2018年現在如何? –