Map.setZoom

設定地圖的縮放等級。

傳回這個 ui.Map。

用量傳回
Map.setZoom(zoom)ui.Map
引數類型詳細資料
zoom數字地圖的縮放等級,範圍為 0 到 24。

範例

程式碼編輯器 (JavaScript)

// See the entire world.
Map.setZoom(1);

// See the smallest region possible.
Map.setZoom(24);

// The most recent zoom is the one the view will have.
Map.setZoom(12);