ee.ImageCollection.style
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
आसान स्टाइल लैंग्वेज का इस्तेमाल करके, विज़ुअलाइज़ेशन के लिए वेक्टर कलेक्शन बनाएं.
इस्तेमाल | रिटर्न |
---|
ImageCollection.style(color, pointSize, pointShape, width, fillColor, styleProperty, neighborhood, lineType) | इमेज |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: collection | FeatureCollection | ड्रॉ किया जाने वाला कलेक्शन. |
color | स्ट्रिंग, डिफ़ॉल्ट: "black" | डिफ़ॉल्ट रंग (सीएसएस 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 | फ़्लोट, डिफ़ॉल्ट: 2 | पॉलीगॉन और पॉइंट शेप के लिए, लाइनों और आउटलाइन की डिफ़ॉल्ट लाइन की चौड़ाई. |
fillColor | स्ट्रिंग, डिफ़ॉल्ट: null | पॉलीगॉन और पॉइंट शेप में रंग भरने के लिए इस्तेमाल किया जाने वाला रंग. डिफ़ॉल्ट रूप से, यह 0.66 की अपारदर्शिता पर 'color' पर सेट होता है. |
styleProperty | स्ट्रिंग, डिफ़ॉल्ट: null | हर सुविधा के लिए प्रॉपर्टी, जिसमें डिक्शनरी शामिल होनी चाहिए. डिक्शनरी में मौजूद वैल्यू, उस सुविधा के लिए डिफ़ॉल्ट वैल्यू को बदल देती हैं. |
neighborhood | पूर्णांक, डिफ़ॉल्ट: 5 | अगर styleProperty का इस्तेमाल किया जाता है और किसी सुविधा का pointSize या चौड़ाई डिफ़ॉल्ट से ज़्यादा है, तो टाइलिंग से जुड़ी गड़बड़ियां हो सकती हैं. यह किसी भी सुविधा के लिए ज़रूरी ज़्यादा से ज़्यादा आस-पास के पिक्सल (pointSize + चौड़ाई) के बारे में बताता है. |
lineType | स्ट्रिंग, डिफ़ॉल्ट: "solid" | यह पॉलीगॉन और पॉइंट शेप की लाइनों और आउटलाइन के लिए, लाइन की डिफ़ॉल्ट स्टाइल होती है. डिफ़ॉल्ट रूप से, इसकी वैल्यू 'solid' होती है. इनमें से एक: सॉलिड, डॉटेड, डैश. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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. |"]]