إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ee.ImageCollection.style
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
ارسم مجموعة متجهات للعرض المرئي باستخدام لغة نمط بسيطة.
الاستخدام | المرتجعات |
---|
ImageCollection.style(color, pointSize, pointShape, width, fillColor, styleProperty, neighborhood, lineType) | صورة |
الوسيطة | النوع | التفاصيل |
---|
هذا: collection | FeatureCollection | المجموعة المطلوب رسمها. |
color | سلسلة، القيمة التلقائية: "أسود" | لون تلقائي (قيمة لون CSS 3.0، مثل FF0000 أو red) لاستخدامها في رسم العناصر. تتيح التعتيم (مثلاً، FF000088 (للون الأحمر الشفاف بنسبة% 50). |
pointSize | عدد صحيح، القيمة التلقائية: 3 | الحجم التلقائي لعلامات النقاط بالبكسل |
pointShape | سلسلة، القيمة التلقائية: "circle" | الشكل التلقائي للعلامة التي سيتم رسمها في كل موقع جغرافي إحدى القيم التالية: `circle` أو `square` أو `diamond` أو `cross` أو `plus` أو `pentagram` أو `hexagram` أو `triangle` أو `triangle_up` أو `triangle_down` أو `triangle_left` أو `triangle_right` أو `pentagon` أو `hexagon` أو `star5` أو `star6`. تقبل هذه السمة أيضًا اختصارات علامات Matlab التالية: `o` و`s` و`d` و`x` و`+` و`p` و`h` و`^` و`v` و`<` و`>`. |
width | Float، القيمة التلقائية: 2 | عرض الخط التلقائي للخطوط والمخططات التفصيلية للمضلعات وأشكال النقاط |
fillColor | سلسلة، القيمة التلقائية: null | لون تعبئة المضلّعات وأشكال النقاط القيمة التلقائية هي "لون" بدرجة تعتيم 0.66. |
styleProperty | سلسلة، القيمة التلقائية: null | سمة لكل ميزة من المتوقّع أن تحتوي على قاموس. وتلغي القيم في القاموس أي قيم تلقائية لتلك الميزة. |
neighborhood | عدد صحيح، القيمة التلقائية: 5 | في حال استخدام styleProperty وكان أي عنصر يحتوي على pointSize أو عرض أكبر من القيم التلقائية، يمكن أن تحدث تشوّهات في التجانب. تحدّد هذه السمة الحد الأقصى للمنطقة المجاورة (pointSize + width) المطلوبة لأي معلم. |
lineType | سلسلة، القيمة التلقائية: "solid" | نمط الخط التلقائي للخطوط والمخططات التفصيلية للمضلعات وأشكال النقاط القيمة التلقائية هي "solid". أحد الخيارات التالية: متصل، منقّط، متقطّع |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eVisualize vector collections (FeatureCollections) by applying styles like color, size, and shape to their features.\u003c/p\u003e\n"],["\u003cp\u003eCustomize the appearance of points, lines, and polygons with parameters such as point size, shape, line width, and fill color.\u003c/p\u003e\n"],["\u003cp\u003eUtilize the \u003ccode\u003estyleProperty\u003c/code\u003e parameter to define individual styles for each feature within the collection.\u003c/p\u003e\n"],["\u003cp\u003eControl potential tiling artifacts by setting the \u003ccode\u003eneighborhood\u003c/code\u003e parameter, especially when using large point sizes or widths.\u003c/p\u003e\n"],["\u003cp\u003eAdjust the default line style for lines and outlines with the \u003ccode\u003elineType\u003c/code\u003e parameter, choosing between solid, dotted, and dashed options.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.style\n\nDraw a vector collection for visualization using a simple style language.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------|---------|\n| ImageCollection.style`(`*color* `, `*pointSize* `, `*pointShape* `, `*width* `, `*fillColor* `, `*styleProperty* `, `*neighborhood* `, `*lineType*`)` | Image |\n\n| Argument | Type | Details |\n|--------------------|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `collection` | FeatureCollection | The collection to draw. |\n| `color` | String, default: \"black\" | A default color (CSS 3.0 color value e.g., 'FF0000' or 'red') to use for drawing the features. Supports opacity (e.g., 'FF000088' for 50% transparent red). |\n| `pointSize` | Integer, default: 3 | The default size in pixels of the point markers. |\n| `pointShape` | String, default: \"circle\" | The default shape of the marker to draw at each point location. One of: \\`circle\\`, \\`square\\`, \\`diamond\\`, \\`cross\\`, \\`plus\\`, \\`pentagram\\`, \\`hexagram\\`, \\`triangle\\`, \\`triangle_up\\`, \\`triangle_down\\`, \\`triangle_left\\`, \\`triangle_right\\`, \\`pentagon\\`, \\`hexagon\\`, \\`star5\\`, \\`star6\\`. This argument also supports these Matlab marker abbreviations: \\`o\\`, \\`s\\`, \\`d\\`, \\`x\\`, \\`+\\`, \\`p\\`, \\`h\\`, \\`\\^\\`, \\`v\\`, \\`\\\u003c\\`, \\`\\\u003e\\`. |\n| `width` | Float, default: 2 | The default line width for lines and outlines for polygons and point shapes. |\n| `fillColor` | String, default: null | The color for filling polygons and point shapes. Defaults to 'color' at 0.66 opacity. |\n| `styleProperty` | String, default: null | A per-feature property expected to contain a dictionary. Values in the dictionary override any default values for that feature. |\n| `neighborhood` | Integer, default: 5 | If styleProperty is used and any feature has a pointSize or width larger than the defaults, tiling artifacts can occur. Specifies the maximum neighborhood (pointSize + width) needed for any feature. |\n| `lineType` | String, default: \"solid\" | The default line style for lines and outlines of polygons and point shapes. Defaults to 'solid'. One of: solid, dotted, dashed. |"]]