ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
ui.Map.DrawingTools.onSelect
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি কলব্যাক নিবন্ধন করে যা একটি আকৃতি নির্বাচন করা হলে বহিস্কার করা হয়৷
একটি আইডি ফেরত দেয় যা কলব্যাক নিবন্ধনমুক্ত করতে unlisten() এ পাস করা যেতে পারে।
ব্যবহার | রিটার্নস | DrawingTools. onSelect (callback) | স্ট্রিং |
যুক্তি | টাইপ | বিস্তারিত | এই: ui.map.drawingtools | ui.Map.DrawingTools | ui.Map.DrawingTools উদাহরণ। |
callback | ফাংশন | একটি আকৃতি নির্বাচন করা হলে ফায়ারে কলব্যাক৷ কলব্যাকটি তিনটি পরামিতি অতিক্রম করেছে: নির্বাচিত ee.Geometry, জ্যামিতি স্তর যার সাথে নির্বাচিত জ্যামিতি অন্তর্গত, এবং ui.Map.DrawingTools উইজেট যা ইভেন্ট শ্রোতা আবদ্ধ৷ |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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\u003eRegisters a callback function that is triggered when a shape is selected on the map.\u003c/p\u003e\n"],["\u003cp\u003eReturns a unique ID that can be used to unregister the callback function using the \u003ccode\u003eunlisten()\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe callback function receives the selected geometry, its corresponding layer, and the DrawingTools widget as arguments.\u003c/p\u003e\n"]]],["Registers a callback function triggered when a shape is selected. The function takes a callback as input. It returns a string ID for unregistering the callback later. The callback function receives three parameters: the selected geometry, its associated layer, and the `ui.Map.DrawingTools` instance. The `ui.Map.DrawingTools` is the instance on which the function is being called.\n"],null,["# ui.Map.DrawingTools.onSelect\n\n\u003cbr /\u003e\n\nRegisters a callback that's fired when a shape is selected.\n\n\u003cbr /\u003e\n\nReturns an ID which can be passed to unlisten() to unregister the callback.\n\n| Usage | Returns |\n|-----------------------------------|---------|\n| DrawingTools.onSelect`(callback)` | String |\n\n| Argument | Type | Details |\n|-----------------------------|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `ui.map.drawingtools` | ui.Map.DrawingTools | The ui.Map.DrawingTools instance. |\n| `callback` | Function | The callback to fire when a shape is selected. The callback is passed three parameters: the selected ee.Geometry, the GeometryLayer to which the selected geometry belongs, and the ui.Map.DrawingTools widget that the event listener is bound to. |"]]