আর্থ ইঞ্জিন শেয়ার্ড কম্পিউট রিসোর্সগুলিকে সুরক্ষিত রাখতে এবং সকলের জন্য নির্ভরযোগ্য কর্মক্ষমতা নিশ্চিত করতে
অ-বাণিজ্যিক কোটা স্তর চালু করছে। সমস্ত অ-বাণিজ্যিক প্রকল্পকে
২৭ এপ্রিল, ২০২৬ এর মধ্যে একটি কোটা স্তর নির্বাচন করতে হবে অথবা ডিফল্টভাবে কমিউনিটি স্তর ব্যবহার করতে হবে। স্তর কোটা সমস্ত প্রকল্পের জন্য (স্তর নির্বাচনের তারিখ নির্বিশেষে)
২৭ এপ্রিল, ২০২৬ থেকে কার্যকর হবে।
আরও জানুন।
ui.root.setKeyHandler
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
রুট প্যানেলে একটি অনির্ধারিত কী-সহ একটি কীডাউন ইভেন্ট হ্যান্ডলার সেট করে। ব্যবহারকারী যখন বাইন্ড করা কী কমান্ডটি চাপেন, তখন হ্যান্ডলারটি কেবল একবারই ফায়ার হয়। একই কী-টি সেটিতে সেট করা সর্বশেষ হ্যান্ডলারের সাথে বাইন্ড হয়ে যাবে।
| ব্যবহার | ফেরত | ui.root.setKeyHandler(keyCode, handler, description ) | |
| যুক্তি | প্রকার | বিস্তারিত | keyCode | তালিকা[ui.Key]|ui.Key | একটি কী কোড অথবা একাধিক কী কোডের একটি অ্যারে। উদাহরণস্বরূপ, ui.Key.A অথবা [ui.Key.SHIFT, ui.Key.A]। |
handler | ফাংশন | কী কমান্ডের হ্যান্ডলার। |
description | স্ট্রিং, ঐচ্ছিক | এই কী কমান্ডটি ব্যাখ্যা করে একটি সংক্ষিপ্ত বিবরণ। বিবরণটি শর্টকাট মেনুতে দেখা যাবে। |
উদাহরণ
কোড এডিটর (জাভাস্ক্রিপ্ট)
// Replace the default UI widgets with a few custom widgets.
// Print "Shift A" to the console when Shift+A is pressed.
ui.root.setKeyHandler(
[ui.Key.SHIFT, ui.Key.A],
function() {
print('Shift A');
},
'A simple print'
);
// Create a solid black image.
var blackImage = ee.Image(1).visualize({palette: ['black']});
// Create a Layer object so we can easily manipulate its properties.
var blackLayer = ui.Map.Layer(blackImage, {}, 'Black Overlay', true);
// Add the layer to the Map.
Map.layers().add(blackLayer);
// Pressing the "b" key will toggle the layer on and off.
ui.root.setKeyHandler(ui.Key.B, function() {
// Get the current visibility state.
var isShown = blackLayer.getShown();
// Set the visibility to the opposite of the current state.
blackLayer.setShown(!isShown);
// Print the status to the console.
print('Black layer visible: ' + !isShown);
}, 'Toggle black layer');
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2026-03-27 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2026-03-27 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],["The `setKeyHandler` function binds a key command to a handler function on the root panel. It accepts a key code (or array of codes), a handler function, and an optional description. When the bound key is pressed, the handler is executed once. Only the most recently assigned handler for a specific key will be triggered. Key codes can be individual (e.g., `ui.Key.A`) or combined (e.g., `[ui.Key.SHIFT, ui.Key.A]`). The description is used in the Shortcuts Menu.\n"]]