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