ee.data.getTileUrl
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
יצירת כתובת URL של משבצות מפה ממזהה מפה ומקואורדינטות. אם הפונקציה formatTileUrl לא קיימת, אנחנו יוצרים אותה באמצעות המחרוזת urlFormat או ניחוש שלה, ומוסיפים את urlFormat ואת formatTileUrl אל
id
לשימוש עתידי.
הפונקציה מחזירה את כתובת ה-URL של המשבצת.
שימוש | החזרות |
---|
ee.data.getTileUrl(id, x, y, z) | מחרוזת |
ארגומנט | סוג | פרטים |
---|
id | RawMapId | מזהה המפה שעבורה רוצים ליצור משבצות. |
x | מספר | קואורדינטת ה-x של קטע במפה. |
y | מספר | הקואורדינטה y של קטע במפה. |
z | מספר | רמת הזום של המשבצת. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 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. |"]]