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);