Map.onTileLoaded
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह कुकी, एक कॉलबैक रजिस्टर करती है. यह कॉलबैक तब ट्रिगर होता है, जब मैप टाइल लोड हो जाती है.
यह एक ऐसा आईडी दिखाता है जिसे unlisten() को पास किया जा सकता है, ताकि कॉलबैक को अनरजिस्टर किया जा सके.
इस्तेमाल | रिटर्न |
---|
Map.onTileLoaded(callback) | स्ट्रिंग |
आर्ग्यूमेंट | टाइप | विवरण |
---|
callback | फ़ंक्शन | इसे हर लेयर की वैल्यू की एक कैटगरी के साथ कॉल किया जाता है. हर वैल्यू, अब भी लोड होने वाली टाइलों का फ़्रैक्शन होती है: वैल्यू 0 का मतलब है कि लेयर के लिए लोड करने के लिए कोई और टाइल नहीं है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eMap.onTileLoaded()\u003c/code\u003e registers a callback function that triggers when a map tile loads.\u003c/p\u003e\n"],["\u003cp\u003eThe callback function receives an array indicating the loading progress of each layer, with 0 signifying complete tile loading for that layer.\u003c/p\u003e\n"],["\u003cp\u003eThis function returns a unique ID that can be used with \u003ccode\u003eunlisten()\u003c/code\u003e to remove the registered callback.\u003c/p\u003e\n"]]],[],null,["# Map.onTileLoaded\n\n\u003cbr /\u003e\n\nRegisters a callback that's fired when a map tile has been loaded.\n\n\u003cbr /\u003e\n\nReturns an ID which can be passed to unlisten() to unregister the callback.\n\n| Usage | Returns |\n|------------------------------|---------|\n| `Map.onTileLoaded(callback)` | String |\n\n| Argument | Type | Details |\n|------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `callback` | Function | Called with an array of per layer values. Each value is the fraction of tiles still pending: a value of 0 means there are no more tiles to load for the layer. |"]]