地圖樣式表參考Map style sheet reference

Microsoft 地圖技術會使用 地圖樣式表單 來定義地圖的外觀,包括顯示在 Windows 市集中應用程式的 隨 mapcontrol中。Microsoft mapping technologies use map style sheets to define the appearance of maps, including those displayed in a Windows Store application's MapControl. 地圖樣式表單是使用 JavaScript 物件標記法 (JSON) 透過 MapStyleSheet. ParseFromJson 方法來定義。A map style sheet is defined using JavaScript Object Notation (JSON) through the MapStyleSheet.ParseFromJson method.

樣式表單包含的 專案 ,其屬性會被覆寫來變更地圖的最終外觀。A style sheet consists of entries whose properties are overridden to change the final appearance of the map.

例如,下列 JSON 可用來讓水區域以紅色顯示,水線標籤會以綠色顯示,而 land 區域則會以藍色顯示:For example, the following JSON can be used to make water areas appear in red, water labels appear in green, and land areas appear in blue:

    {"version":"1.*",
        "settings":{"landColor":"#0000FF"},
        "elements":{"water":{"fillColor":"#FF0000","labelColor":"#00FF00"}}
    }

您可以使用 [ 地圖樣式表單編輯器 ] 應用程式,以互動方式建立樣式表單。Style sheets can be created interactively using the Map Style Sheet Editor application.