نمایش همه کنترلها. نادرست تمام کنترل ها را پنهان می کند. true تمام کنترل ها را نشان می دهد. با پارامترهای تنظیم شده به صورت جداگانه لغو شد. توجه داشته باشید که تنظیم این صراحتاً بر هر کنترل اضافی اضافه شده در آینده تأثیر می گذارد.
layerList
بولی، اختیاری
هنگامی که نادرست است، پانل لیست لایه را پنهان می کند یا در صورت درست بودن، اجازه می دهد تا پانل لیست لایه ها با وجود لایه ها در لیست مشخص شود. پیش فرض این است که لیست را نشان دهد.
zoomControl
بولی، اختیاری
اینکه آیا کنترل زوم قابل مشاهده است یا خیر. پیش فرض ها به درست است.
scaleControl
بولی، اختیاری
آیا برای نشان دادن کنترلی که مقیاس را در سطح بزرگنمایی فعلی نقشه نشان می دهد یا خیر. پیش فرض ها به درست است.
mapTypeControl
بولی، اختیاری
آیا برای نمایش کنترلی که به کاربر اجازه می دهد نقشه پایه را تغییر دهد. پیش فرض ها به درست است.
fullscreenControl
بولی، اختیاری
آیا برای نمایش کنترلی که به کاربر اجازه می دهد نقشه را تمام صفحه کند. پیش فرض ها به درست است.
drawingToolsControl
بولی، اختیاری
آیا برای نشان دادن کنترلی که به کاربر اجازه می دهد ابزارهای ترسیم هندسه را اضافه یا ویرایش کند. اگر ابزارهای ترسیم قبلاً به نقشه اضافه شده باشند، پیشفرض درست است. اگر ابزارهای ترسیم قبلاً به نقشه اضافه نشده باشند، نادیده گرفته می شود.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["Controls the visibility of map elements like zoom, scale, layer list, and map type selection."],["Allows for customization by showing or hiding individual controls or all at once."],["Uses Boolean values (true/false) to set the visibility of each control element."],["Provides control over the fullscreen and drawing tools visibility, if enabled on the map."],["Affects the display of the layer list panel based on the presence of layers and user preference."]]],["The `Map.setControlVisibility` function modifies the visibility of map controls. It accepts boolean arguments to show or hide controls: `all`, `layerList`, `zoomControl`, `scaleControl`, `mapTypeControl`, `fullscreenControl`, and `drawingToolsControl`. Setting `all` to true/false shows/hides all controls unless overridden. `layerList` determines the visibility of the layer list panel. The function returns the modified `ui.Map` instance, and each control defaults to visible (true), except `drawingToolsControl` that needs the drawing tools to have been added before.\n"]]