Map.setZoom

Legt die Zoomstufe der Karte fest.

Gibt diese ui.Map zurück.

NutzungAusgabe
Map.setZoom(zoom)ui.Map
ArgumentTypDetails
zoomZahlDie Zoomstufe, die für die Karte festgelegt werden soll (0 bis 24).

Beispiele

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