公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.data.getTileUrl
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
根據地圖 ID 和座標產生地圖圖塊的網址。如果沒有 formatTileUrl,我們會使用或猜測 urlFormat 字串來產生,並將 urlFormat 和 formatTileUrl 新增至
id
,以供日後使用。
傳回圖塊網址。
用量 | 傳回 |
---|
ee.data.getTileUrl(id, x, y, z) | 字串 |
引數 | 類型 | 詳細資料 |
---|
id | RawMapId | 要產生圖塊的地圖 ID。 |
x | 數字 | 圖塊的 x 座標。 |
y | 數字 | 圖塊的 y 座標。 |
z | 數字 | 圖塊縮放等級。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\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. |"]]