お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ui.url.set
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ページの URL フラグメントの値を設定します。フラグメントは、キーと値のディクショナリをエンコードします。辞書が最初の引数として指定された場合、その辞書のキーと値のペアがエンコードされ、現在の URL フラグメントが置き換えられます。キー文字列が指定されている場合は、そのキー(とその値である 2 番目の引数)のみが更新され、URL フラグメントの残りの部分は変更されません。
用途 | 戻り値 |
---|
ui.url.set(keyOrDict, value) | |
引数 | タイプ | 詳細 |
---|
keyOrDict | Dictionary<Object>|String | URL フラグメント内の単一の値を更新するキー、または既存の URL フラグメントを置き換える Key-Value ペアのディクショナリ。辞書の値は、文字列、数値、またはブール値のいずれかの型にする必要があります。 |
value | Boolean|Number|String(省略可) | 単一のキーに関連付ける新しい値。最初の引数が文字列の場合に必要です。それ以外の場合は無視されます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003e\u003ccode\u003eui.url.set\u003c/code\u003e lets you modify the URL fragment, which stores data as key-value pairs.\u003c/p\u003e\n"],["\u003cp\u003eYou can either replace the entire fragment with a new dictionary or update a single key's value.\u003c/p\u003e\n"],["\u003cp\u003eDictionary values in the URL fragment must be strings, numbers, or booleans.\u003c/p\u003e\n"]]],[],null,["# ui.url.set\n\n\u003cbr /\u003e\n\nSets the value of the page's URL fragment. The fragment encodes a dictionary of keys and values. If a dictionary is supplied as the first argument, the key/value pairs in that dictionary will be encoded and replace the current URL fragment. If a key string is provided, then only that key (and its value, the second argument) are updated, and the rest of the URL fragment is unchanged.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------|---------|\n| `ui.url.set(keyOrDict, `*value*`)` | |\n\n| Argument | Type | Details |\n|-------------|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `keyOrDict` | Dictionary\\\u003cObject\\\u003e\\|String | Either a key to update a single value in the URL fragment, or a dictionary of key/value pairs which will replace the existing URL fragment. Dictionary values must be of type string, number, or boolean. |\n| `value` | Boolean\\|Number\\|String, optional | The new value to associate with a single key. This is required when the first argument is a string and is otherwise ignored. |"]]