Max Zoom
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
google.maps.MaxZoomService
क्लास
यह सेवा, किसी जगह के लिए सैटलाइट से ली गई तस्वीरों को ज़ूम करके देखने की सुविधा देती है.
const {MaxZoomService} = await google.maps.importLibrary("maps")
को कॉल करके ऐक्सेस करें. Maps JavaScript API में लाइब्रेरी देखें.
निर्माता |
MaxZoomService |
MaxZoomService()
पैरामीटर: कोई नहीं
MaxZoomService का एक नया इंस्टेंस बनाता है. इसका इस्तेमाल, सैटलाइट इमेज के लिए उपलब्ध ज़ूम लेवल के बारे में क्वेरी भेजने के लिए किया जा सकता है.
|
तरीके |
getMaxZoomAtLatLng |
getMaxZoomAtLatLng(latlng[, callback])
ज़ूम करने का वह ज़्यादा से ज़्यादा लेवल दिखाता है जिस पर satellite मैप टाइप के लिए, किसी खास LatLng पर ज़्यादा जानकारी वाली इमेज उपलब्ध होती है. यह अनुरोध एसिंक्रोनस है. इसलिए, आपको एक callback फ़ंक्शन पास करना होगा. यह फ़ंक्शन, अनुरोध पूरा होने के बाद MaxZoomResult पास करके लागू किया जाएगा. |
google.maps.MaxZoomResult
इंटरफ़ेस
MaxZoomService से मिला, JSON फ़ॉर्मैट में MaxZoom का नतीजा.
प्रॉपर्टी |
zoom |
टाइप: number
दिए गए LatLng पर ज़ूम करने पर, ज़्यादा से ज़्यादा ज़ूम लेवल. |
status optional |
अनुरोध की स्थिति. यह प्रॉपर्टी सिर्फ़ तब तय की जाती है, जब MaxZoomService.getMaxZoomAtLatLng के साथ कॉलबैक का इस्तेमाल किया जाता है. प्रॉमिस का इस्तेमाल करने पर, यह प्रॉपर्टी तय नहीं की जाती. |
google.maps.MaxZoomStatus
कंस्टेंट
getMaxZoomAtLatLng()
पर कॉल पूरा होने पर, MaxZoomService
से मिला स्टेटस. इनकी वैल्यू या कॉन्स्टेंट के नाम का इस्तेमाल करके इनकी जानकारी दें. उदाहरण के लिए, 'OK'
या google.maps.MaxZoomStatus.OK
.
const {MaxZoomStatus} = await google.maps.importLibrary("maps")
को कॉल करके ऐक्सेस करें. Maps JavaScript API में लाइब्रेरी देखें.
कॉन्स्टेंट |
ERROR |
कोई अज्ञात गड़बड़ी हुई. |
OK |
जवाब में मान्य MaxZoomResult शामिल है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-12-22 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-12-22 (UTC) को अपडेट किया गया."],[],[],null,["[MaxZoomService](#MaxZoomService)\nclass\n\n\ngoogle.maps`.`MaxZoomService\nclass\n\nA service for obtaining the highest zoom level at which satellite imagery is available for a given location.\n\nAccess by calling `const {MaxZoomService} = await google.maps.importLibrary(\"maps\")`. \nSee [Libraries in the Maps JavaScript API](/maps/documentation/javascript/libraries).\n\n| Constructor ||\n|-----------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [MaxZoomService](#MaxZoomService.constructor) | `MaxZoomService()` **Parameters:** None Creates a new instance of a `MaxZoomService` that can be used to send queries about the maximum zoom level available for satellite imagery. |\n\n| Methods ||\n|----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [getMaxZoomAtLatLng](#MaxZoomService.getMaxZoomAtLatLng) | `getMaxZoomAtLatLng(latlng[, callback])` **Parameters:** - `latlng`: [LatLng](/maps/documentation/javascript/reference/coordinates#LatLng)`|`[LatLngLiteral](/maps/documentation/javascript/reference/coordinates#LatLngLiteral) - `callback`: `function(`[MaxZoomResult](/maps/documentation/javascript/reference/max-zoom#MaxZoomResult)`): void `optional **Return Value:** [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)`\u003c`[MaxZoomResult](/maps/documentation/javascript/reference/max-zoom#MaxZoomResult)`\u003e` Returns the maximum zoom level for which detailed imagery is available at a particular `LatLng` for the `satellite` map type. As this request is asynchronous, you must pass a `callback` function which will be executed upon completion of the request, being passed a `MaxZoomResult`. |\n\n[MaxZoomResult](#MaxZoomResult)\ninterface\n\n\ngoogle.maps`.`MaxZoomResult\ninterface\n\nA MaxZoom result in JSON format retrieved from the MaxZoomService.\n\n| Properties ||\n|--------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [zoom](#MaxZoomResult.zoom) | **Type:** `number` The maximum zoom level found at the given `LatLng`. |\n| [status](#MaxZoomResult.status)` `optional | **Type:** [MaxZoomStatus](/maps/documentation/javascript/reference/max-zoom#MaxZoomStatus)` `optional Status of the request. This property is only defined when using callbacks with [MaxZoomService.getMaxZoomAtLatLng](/maps/documentation/javascript/reference/max-zoom#MaxZoomService.getMaxZoomAtLatLng) (it is not defined when using Promises). |\n\n[MaxZoomStatus](#MaxZoomStatus)\nconstants\n\n\ngoogle.maps`.`MaxZoomStatus\nconstants\n\nThe status returned by the `MaxZoomService` on the completion of a call to `getMaxZoomAtLatLng()`. Specify these by value, or by using the constant's name. For example, `'OK'` or `google.maps.MaxZoomStatus.OK`.\n\nAccess by calling `const {MaxZoomStatus} = await google.maps.importLibrary(\"maps\")`. \nSee [Libraries in the Maps JavaScript API](/maps/documentation/javascript/libraries).\n\n| Constants ||\n|-------------------------------|------------------------------------------------|\n| [ERROR](#MaxZoomStatus.ERROR) | An unknown error occurred. |\n| [OK](#MaxZoomStatus.OK) | The response contains a valid `MaxZoomResult`. |"]]