Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.data.getTileUrl
Stay organized with collections
Save and categorize content based on your preferences.
Generate 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.
Returns the tile URL.
Usage | Returns | ee.data.getTileUrl(id, x, y, z) | String |
Argument | Type | Details | id | RawMapId | The Map ID to generate tiles for. |
x | Number | The tile x coordinate. |
y | Number | The tile y coordinate. |
z | Number | The tile zoom level. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 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. |"]]