ee.data.getTileUrl
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
मैप आईडी और निर्देशांकों से, मैप टाइल के लिए यूआरएल जनरेट करें. अगर formatTileUrl मौजूद नहीं है, तो हम urlFormat स्ट्रिंग का इस्तेमाल करके या अनुमान लगाकर इसे जनरेट करते हैं. साथ ही, urlFormat और formatTileUrl को
id
में जोड़ते हैं, ताकि इनका इस्तेमाल आने वाले समय में किया जा सके.
यह फ़ंक्शन, टाइल का यूआरएल दिखाता है.
इस्तेमाल | रिटर्न |
---|
ee.data.getTileUrl(id, x, y, z) | स्ट्रिंग |
आर्ग्यूमेंट | टाइप | विवरण |
---|
id | RawMapId | जिस मैप आईडी के लिए टाइल जनरेट करनी हैं. |
x | नंबर | टाइल का x कॉर्डिनेट. |
y | नंबर | यह टाइल का y कोऑर्डिनेट है. |
z | नंबर | टाइल का ज़ूम लेवल. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003eThe \u003ccode\u003eee.data.getTileUrl\u003c/code\u003e function generates a URL for map tiles using a Map ID and coordinates.\u003c/p\u003e\n"],["\u003cp\u003eIf a custom URL format isn't provided, the function attempts to determine one automatically and adds it to the Map ID for future use.\u003c/p\u003e\n"],["\u003cp\u003eIt returns a string containing the generated tile URL, taking a Map ID, x, y, and z coordinates as input.\u003c/p\u003e\n"]]],[],null,["# ee.data.getTileUrl\n\n\u003cbr /\u003e\n\nGenerate a URL for map tiles from a Map ID and coordinates. If formatTileUrl is not present, we generate it by using or guessing the urlFormat string, and add urlFormat and formatTileUrl to `id` for future use.\n\n\u003cbr /\u003e\n\nReturns the tile URL.\n\n| Usage | Returns |\n|-----------------------------------|---------|\n| `ee.data.getTileUrl(id, x, y, z)` | String |\n\n| Argument | Type | Details |\n|----------|----------|-----------------------------------|\n| `id` | RawMapId | The Map ID to generate tiles for. |\n| `x` | Number | The tile x coordinate. |\n| `y` | Number | The tile y coordinate. |\n| `z` | Number | The tile zoom level. |"]]