Map.setZoom

Imposta il livello di zoom della mappa.

Restituisce questo ui.Map.

UtilizzoResi
Map.setZoom(zoom)ui.Map
ArgomentoTipoDettagli
zoomNumeroIl livello di zoom, da 0 a 24, da impostare per la mappa.

Esempi

Editor di codice (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);