ui.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 |
---|
to: ui.map | ui.Map | Instancja ui.Map. |
zoom | Liczba | Poziom powiększenia mapy (od 0 do 24). |
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."],[[["\u003cp\u003e\u003ccode\u003esetZoom()\u003c/code\u003e adjusts the magnification level of the map, allowing users to view the map at different scales.\u003c/p\u003e\n"],["\u003cp\u003eThis function accepts a numerical zoom level ranging from 0 (world view) to 24 (street level) and applies it to the specified ui.Map.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003esetZoom()\u003c/code\u003e on a ui.Map instance returns the same ui.Map object, enabling method chaining.\u003c/p\u003e\n"]]],[],null,["# ui.Map.setZoom\n\n\u003cbr /\u003e\n\nSets the zoom level of the map.\n\n\u003cbr /\u003e\n\nReturns this ui.Map.\n\n| Usage | Returns |\n|---------------------|---------|\n| Map.setZoom`(zoom)` | ui.Map |\n\n| Argument | Type | Details |\n|----------------|--------|---------------------------------------------------|\n| this: `ui.map` | ui.Map | The ui.Map instance. |\n| `zoom` | Number | The zoom level, from 0 to 24, to set for the map. |"]]