إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
Map.setControlVisibility
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تضبط هذه السمة مستوى ظهور عناصر التحكّم على الخريطة.
تعرض هذه الدالة ui.Map.
الاستخدام | المرتجعات |
---|
Map.setControlVisibility(all, layerList, zoomControl, scaleControl, mapTypeControl, fullscreenControl, drawingToolsControl) | ui.Map |
الوسيطة | النوع | التفاصيل |
---|
all | قيمة منطقية، اختيارية | تحديد ما إذا كان سيتم عرض جميع عناصر التحكّم يؤدي ضبط القيمة على "خطأ" إلى إخفاء جميع عناصر التحكّم، بينما يؤدي ضبط القيمة على "صحيح" إلى عرض جميع عناصر التحكّم. يتم إلغاؤها من خلال المَعلمات التي يتم ضبطها بشكلٍ فردي. يُرجى العِلم أنّ ضبط هذا الإعداد بشكل صريح سيؤثر في أي عناصر تحكّم إضافية تتم إضافتها في المستقبل. |
layerList | قيمة منطقية، اختيارية | عندما تكون القيمة false، يتم إخفاء لوحة قائمة الطبقات، أو عندما تكون القيمة true، يتم السماح بتحديد مستوى ظهور لوحة قائمة الطبقات من خلال توفّر طبقات في القائمة. الإعداد التلقائي هو عرض القائمة. |
zoomControl | قيمة منطقية، اختيارية | تحديد ما إذا كان عنصر التحكّم في التكبير أو التصغير مرئيًا القيمة التلقائية هي "صحيح". |
scaleControl | قيمة منطقية، اختيارية | تحديد ما إذا كان سيتم عرض عنصر التحكّم الذي يشير إلى المقياس عند مستوى التكبير أو التصغير الحالي للخريطة القيمة التلقائية هي "صحيح". |
mapTypeControl | قيمة منطقية، اختيارية | تحدّد هذه السمة ما إذا كان سيتم عرض عنصر التحكّم الذي يتيح للمستخدم تغيير الخريطة الأساسية. القيمة التلقائية هي "صحيح". |
fullscreenControl | قيمة منطقية، اختيارية | تحديد ما إذا كان سيتم عرض عنصر التحكّم الذي يتيح للمستخدم عرض الخريطة بملء الشاشة القيمة التلقائية هي "صحيح". |
drawingToolsControl | قيمة منطقية، اختيارية | تحديد ما إذا كان سيتم عرض عنصر التحكّم الذي يتيح للمستخدم إضافة أدوات رسم الأشكال الهندسية أو تعديلها القيمة التلقائية هي "صحيح". |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003e\u003ccode\u003eMap.setControlVisibility()\u003c/code\u003e allows customization of the visibility of map controls, such as zoom, scale, layer list, map type, fullscreen, and drawing tools.\u003c/p\u003e\n"],["\u003cp\u003eControl visibility can be set individually for each control or globally using the \u003ccode\u003eall\u003c/code\u003e parameter, with individual settings overriding the global setting.\u003c/p\u003e\n"],["\u003cp\u003eBy default, all map controls are visible; setting \u003ccode\u003eall\u003c/code\u003e to \u003ccode\u003efalse\u003c/code\u003e will hide all controls, while setting it to \u003ccode\u003etrue\u003c/code\u003e will show all.\u003c/p\u003e\n"],["\u003cp\u003eThe layer list's visibility is influenced by the presence of layers and can be further customized using the \u003ccode\u003elayerList\u003c/code\u003e parameter.\u003c/p\u003e\n"]]],["The `Map.setControlVisibility` function sets the visibility of map controls. It accepts boolean arguments: `all`, `layerList`, `zoomControl`, `scaleControl`, `mapTypeControl`, `fullscreenControl`, and `drawingToolsControl`. `all` toggles all controls, while the others manage individual controls. Defaults for all controls except the layer list are set to show, the default for the layer list is to show if layers are present. The function returns the `ui.Map` object.\n"],null,["# Map.setControlVisibility\n\n\u003cbr /\u003e\n\nSets the visibility of the controls on the map.\n\n\u003cbr /\u003e\n\nReturns this ui.Map.\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|\n| `Map.setControlVisibility(`*all* `, `*layerList* `, `*zoomControl* `, `*scaleControl* `, `*mapTypeControl* `, `*fullscreenControl* `, `*drawingToolsControl*`)` | ui.Map |\n\n| Argument | Type | Details |\n|-----------------------|-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `all` | Boolean, optional | Whether to show all controls. False hides all controls; true shows all controls. Overridden by individually set parameters. Note that setting this explicitly will affect any additional controls added in the future. |\n| `layerList` | Boolean, optional | When false, hides the layer list panel or, when true, allows the layer list panel's visibility to be determined by the presence of layers in the list. The default is to show the list. |\n| `zoomControl` | Boolean, optional | Whether the zoom control is visible. Defaults to true. |\n| `scaleControl` | Boolean, optional | Whether to show the control which indicates the scale at the map's current zoom level. Defaults to true. |\n| `mapTypeControl` | Boolean, optional | Whether to show the control that allows the user to change the base map. Defaults to true. |\n| `fullscreenControl` | Boolean, optional | Whether to show the control that allows the user to make the map full-screen. Defaults to true. |\n| `drawingToolsControl` | Boolean, optional | Whether to show the control that allows the user to add or edit the geometry drawing tools. Defaults to true. |"]]