إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ui.url.set
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تضبط هذه السمة قيمة جزء عنوان URL الخاص بالصفحة. يُرمّز الجزء قاموسًا من المفاتيح والقيم. إذا تم تقديم قاموس كمعلَمة أولى، سيتم ترميز أزواج المفاتيح والقيم في هذا القاموس واستبدال جزء عنوان URL الحالي بها. في حال توفير سلسلة مفاتيح، سيتم تعديل هذا المفتاح فقط (وقيمته، وهي الوسيطة الثانية)، ولن يتم تغيير بقية جزء عنوان URL.
الاستخدام | المرتجعات |
---|
ui.url.set(keyOrDict, value) | |
الوسيطة | النوع | التفاصيل |
---|
keyOrDict | Dictionary<Object>|String | إما مفتاح لتعديل قيمة واحدة في جزء عنوان URL، أو قاموس لأزواج المفتاح/القيمة التي ستحلّ محلّ جزء عنوان URL الحالي. يجب أن تكون قيم القاموس من النوع "سلسلة" أو "رقم" أو "قيمة منطقية". |
value | Boolean|Number|String، اختياري | القيمة الجديدة التي سيتم ربطها بمفتاح واحد. هذا الحقل مطلوب عندما تكون الوسيطة الأولى عبارة عن سلسلة ويتم تجاهله في الحالات الأخرى. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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. |"]]