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);