Map.setZoom
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ustawia poziom powiększenia mapy.
Zwraca ui.Map.
Wykorzystanie | Zwroty |
---|
Map.setZoom(zoom) | ui.Map |
Argument | Typ | Szczegóły |
---|
zoom | Liczba | Poziom 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);
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[],["The `Map.setZoom(zoom)` function adjusts the map's zoom level, ranging from 0 to 24. A value of 1 shows the entire world, while 24 displays the smallest region. This function takes a single numerical argument, `zoom`, representing the desired level. The most recently applied zoom value dictates the map's final view. The function returns a `ui.Map` object.\n"],null,[]]