Map.setZoom

Đặt mức thu phóng của bản đồ.

Trả về ui.Map này.

Cách sử dụngGiá trị trả về
Map.setZoom(zoom)ui.Map
Đối sốLoạiThông tin chi tiết
zoomSốMức thu phóng (từ 0 đến 24) cần đặt cho bản đồ.

Ví dụ

Trình soạn thảo mã (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);