Map.setZoom

Ustawia poziom powiększenia mapy.

Zwraca ui.Map.

WykorzystanieZwroty
Map.setZoom(zoom)ui.Map
ArgumentTypSzczegóły
zoomLiczbaPoziom powiększenia mapy (od 0 do 24).

Przykłady

Edytor kodu (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);