ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
ui.Map.setControlVisibility
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
মানচিত্রে নিয়ন্ত্রণগুলির দৃশ্যমানতা সেট করে।
এই ui.Map ফেরত দেয়।
ব্যবহার | রিটার্নস | Map. setControlVisibility ( all , layerList , zoomControl , scaleControl , mapTypeControl , fullscreenControl , drawingToolsControl ) | ui.মানচিত্র |
যুক্তি | টাইপ | বিস্তারিত | এই: ui.map | ui.মানচিত্র | ui.Map উদাহরণ। |
all | বুলিয়ান, ঐচ্ছিক | সব কন্ট্রোল দেখাবে কিনা। মিথ্যা সমস্ত নিয়ন্ত্রণ লুকিয়ে রাখে; সত্য সব নিয়ন্ত্রণ দেখায়. পৃথকভাবে সেট করা প্যারামিটার দ্বারা ওভাররাইড করা হয়েছে। মনে রাখবেন যে এটি স্পষ্টভাবে সেট করা ভবিষ্যতে যোগ করা যেকোনো অতিরিক্ত নিয়ন্ত্রণকে প্রভাবিত করবে। |
layerList | বুলিয়ান, ঐচ্ছিক | মিথ্যা হলে, স্তর তালিকা প্যানেল লুকিয়ে রাখে বা, সত্য হলে, তালিকায় স্তরগুলির উপস্থিতি দ্বারা স্তর তালিকা প্যানেলের দৃশ্যমানতা নির্ধারণ করতে দেয়৷ ডিফল্ট হল তালিকা দেখাতে হবে। |
zoomControl | বুলিয়ান, ঐচ্ছিক | জুম নিয়ন্ত্রণ দৃশ্যমান কিনা। ডিফল্ট থেকে সত্য। |
scaleControl | বুলিয়ান, ঐচ্ছিক | মানচিত্রের বর্তমান জুম স্তরে স্কেল নির্দেশ করে এমন নিয়ন্ত্রণ দেখাবে কিনা। ডিফল্ট থেকে সত্য। |
mapTypeControl | বুলিয়ান, ঐচ্ছিক | ব্যবহারকারীকে ভিত্তি মানচিত্র পরিবর্তন করার অনুমতি দেয় এমন নিয়ন্ত্রণ প্রদর্শন করা হবে কিনা। ডিফল্ট থেকে সত্য। |
fullscreenControl | বুলিয়ান, ঐচ্ছিক | ব্যবহারকারীকে মানচিত্রটি পূর্ণ-স্ক্রীন করতে অনুমতি দেয় এমন নিয়ন্ত্রণ দেখাবে কিনা। ডিফল্ট থেকে সত্য। |
drawingToolsControl | বুলিয়ান, ঐচ্ছিক | ব্যবহারকারীকে জ্যামিতি অঙ্কন সরঞ্জাম যোগ বা সম্পাদনা করার অনুমতি দেয় এমন নিয়ন্ত্রণ দেখাবে কিনা। অঙ্কন সরঞ্জাম পূর্বে মানচিত্রে যোগ করা হলে ডিফল্ট সত্য। অঙ্কন সরঞ্জাম পূর্বে মানচিত্রে যোগ করা না হলে উপেক্ষা করা হয়. |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eControls the visibility of map elements like zoom, scale, layer list, and map type selection.\u003c/p\u003e\n"],["\u003cp\u003eAllows for customization by showing or hiding individual controls or all at once.\u003c/p\u003e\n"],["\u003cp\u003eUses Boolean values (true/false) to set the visibility of each control element.\u003c/p\u003e\n"],["\u003cp\u003eProvides control over the fullscreen and drawing tools visibility, if enabled on the map.\u003c/p\u003e\n"],["\u003cp\u003eAffects the display of the layer list panel based on the presence of layers and user preference.\u003c/p\u003e\n"]]],["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"],null,["# ui.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| this: `ui.map` | ui.Map | The ui.Map instance. |\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 if the drawing tools were previously added to the map. Ignored if the drawing tools were not previously added to the map. |"]]