ee.ImageCollection.style
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ציור של אוסף וקטורים להמחשה באמצעות שפת סגנון פשוטה.
שימוש | החזרות |
---|
ImageCollection.style(color, pointSize, pointShape, width, fillColor, styleProperty, neighborhood, lineType) | תמונה |
ארגומנט | סוג | פרטים |
---|
זה: collection | FeatureCollection | האוסף לצביעה. |
color | מחרוזת, ברירת מחדל: 'black' | צבע ברירת מחדל (ערך צבע 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 | הצבע למילוי של פוליגונים וצורות של נקודות. ברירת המחדל היא 'color' באטימות של 0.66. |
styleProperty | מחרוזת, ברירת מחדל: null | מאפיין לכל תכונה שאמור להכיל מילון. הערכים במילון מבטלים את ערכי ברירת המחדל של התכונה. |
neighborhood | מספר שלם, ברירת מחדל: 5 | אם משתמשים ב-styleProperty ולתכונה כלשהי יש pointSize או width גדולים יותר מהערכים שמוגדרים כברירת מחדל, יכולים להופיע ארטיפקטים של יצירת משבצות. מציין את השכונה המקסימלית (pointSize + width) שנדרשת לכל תכונה. |
lineType | מחרוזת, ברירת מחדל: solid | סגנון ברירת המחדל של קווים ומתארים של פוליגונים וצורות של נקודות. ברירת המחדל היא 'solid'. אחת מהאפשרויות: רצוף, מנוקד, מקווקו. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\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. |"]]