當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


JavaScript ArcGIS BingMapsLayer.region用法及代碼示例

基本信息

以下是所在類或對象的基本信息。

AMD: require(["esri/layers/BingMapsLayer"], (BingMapsLayer) => { /* code goes here */ });

ESM: import BingMapsLayer from "@arcgis/core/layers/BingMapsLayer";

類: esri/layers/BingMapsLayer

繼承: BingMapsLayer > BaseTileLayer > Layer > Accessor

自從:用於 JavaScript 4.8 的 ArcGIS API

用法說明

BingMapsLayer.region函數(或屬性)的定義如下:

region String


這將改變地緣政治有爭議的邊界和標簽,以與指定的用戶區域對齊。

有關 Bing 區域設置的更多信息,請訪問:https://docs.microsoft.com/en-us/bingmaps/rest-services/common-parameters-and-types/user-context-parameters

有關支持的國家/地區代碼列表,請訪問:請參閱https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

默認值:null

例子:

// To adjust the Bing maps regional setting.
let bing = new BingMapsLayer({
  key: "~~~~~~~~~~~~~~~~~~~~~~~~ Bing maps key ~~~~~~~~~~~~~~~~~~~~~~~~~",
  region: "NZ"
});

相關用法


注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 BingMapsLayer.region。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。