إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ui.Map.GeometryLayer.setColor
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تضبط هذه السمة لون CSS للأشكال في الطبقة.
تعرض هذه الطبقة في الخريطة.
الاستخدام | المرتجعات |
---|
GeometryLayer.setColor(color) | ui.Map.GeometryLayer |
الوسيطة | النوع | التفاصيل |
---|
هذا: ui.map.geometrylayer | ui.Map.GeometryLayer | مثيل ui.Map.GeometryLayer |
color | سلسلة | لون الطبقة |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eDefines the color of shapes within a GeometryLayer on the map.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetColor()\u003c/code\u003e method accepts a color string as input and applies it to the layer's shapes.\u003c/p\u003e\n"],["\u003cp\u003eIt returns the \u003ccode\u003eui.Map.GeometryLayer\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"]]],["The `GeometryLayer.setColor(color)` method modifies the color of shapes within a map layer. It accepts a `color` argument, which is a string representing the desired color. The method's primary action is to update the CSS color of the layer's shapes. Upon execution, it returns the `ui.Map.GeometryLayer` instance, allowing for method chaining. The input argument is `this`, referencing the specific `ui.Map.GeometryLayer` instance that the function is called upon.\n"],null,["# ui.Map.GeometryLayer.setColor\n\n\u003cbr /\u003e\n\nSets the CSS color of shapes in the layer.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|---------------------------------|----------------------|\n| GeometryLayer.setColor`(color)` | ui.Map.GeometryLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|------------------------------------|\n| this: `ui.map.geometrylayer` | ui.Map.GeometryLayer | The ui.Map.GeometryLayer instance. |\n| `color` | String | The color of the layer. |"]]