Map.setZoom

הגדרת רמת הזום של המפה.

מחזירה את ui.Map.

שימושהחזרות
Map.setZoom(zoom)ui.Map
ארגומנטסוגפרטים
zoomמספררמת הזום, מ-0 עד 24, שמוגדרת למפה.

דוגמאות

עורך הקוד (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);