إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ui.Map.DrawingTools.setShape
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تضبط هذه السمة شكل وضع الرسم وتبدأ وضع الرسم. أشكال وضع الرسم المتاحة هي: النقطة والخط والمضلّع والمستطيل.
تعرض هذه المجموعة من أدوات الرسم.
الاستخدام | المرتجعات |
---|
DrawingTools.setShape(shape) | ui.Map.DrawingTools |
الوسيطة | النوع | التفاصيل |
---|
هذا: ui.map.drawingtools | ui.Map.DrawingTools | مثيل ui.Map.DrawingTools |
shape | سلسلة | الشكل المطلوب رسمه. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-29 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-29 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eEnables users to initiate drawing mode on a map with selectable shapes like points, lines, polygons, and rectangles.\u003c/p\u003e\n"],["\u003cp\u003eProvides a method (\u003ccode\u003esetShape\u003c/code\u003e) to specify the desired shape for drawing, accepting a string argument representing the shape type.\u003c/p\u003e\n"],["\u003cp\u003eReturns the DrawingTools instance, allowing for method chaining and further customization.\u003c/p\u003e\n"]]],["The `DrawingTools.setShape(shape)` method configures the drawing tool's shape (point, line, polygon, or rectangle) and activates draw mode. It accepts a string argument specifying the desired shape and returns the `ui.Map.DrawingTools` instance, allowing for method chaining. This method is used to select the shape to draw and initiate the drawing process.\n"],null,["# ui.Map.DrawingTools.setShape\n\n\u003cbr /\u003e\n\nSets the draw mode shape and starts draw mode. The available draw mode shapes are: point, line, polygon, and rectangle.\n\n\u003cbr /\u003e\n\nReturns this set of drawing tools.\n\n| Usage | Returns |\n|--------------------------------|---------------------|\n| DrawingTools.setShape`(shape)` | ui.Map.DrawingTools |\n\n| Argument | Type | Details |\n|-----------------------------|---------------------|-----------------------------------|\n| this: `ui.map.drawingtools` | ui.Map.DrawingTools | The ui.Map.DrawingTools instance. |\n| `shape` | String | The shape to draw. |"]]