Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.url.get
Stay organized with collections
Save and categorize content based on your preferences.
Returns the value of the given key from the URL fragment.
Usage | Returns | ui.url.get(key, default) | Boolean|Number|Object|String |
Argument | Type | Details | key | String | The name of the parameter to read. |
default | Boolean|Number|String, optional | optional default value to return if no value is present. |
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\u003eRetrieves a specific value from the URL fragment using the provided key.\u003c/p\u003e\n"],["\u003cp\u003eReturns the value associated with the key, which can be a boolean, number, object, or string.\u003c/p\u003e\n"],["\u003cp\u003eIf the key is not found in the URL fragment, an optional default value can be returned.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eui.url.get(key, default)\u003c/code\u003e function for accessing the fragment value.\u003c/p\u003e\n"]]],[],null,["# ui.url.get\n\n\u003cbr /\u003e\n\nReturns the value of the given key from the URL fragment.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------|---------------------------------|\n| `ui.url.get(key, `*default*`)` | Boolean\\|Number\\|Object\\|String |\n\n| Argument | Type | Details |\n|-----------|-----------------------------------|----------------------------------------------------------|\n| `key` | String | The name of the parameter to read. |\n| `default` | Boolean\\|Number\\|String, optional | optional default value to return if no value is present. |"]]