Duyuru: 15 Nisan 2025'ten önce Earth Engine'i kullanmak için kaydedilen tüm ticari olmayan projelerin Earth Engine erişimini sürdürmek için ticari olmayan uygunluğu doğrulaması gerekir.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Harita tıklandığında tetiklenen bir geri çağırma kaydeder.
Geri çağırma işlemini kaydını silmek için unlisten() işlevine iletilebilecek bir kimlik döndürür.
Kullanım
İadeler
Map.onClick(callback)
Dize
Bağımsız Değişken
Tür
Ayrıntılar
callback
İşlev
Harita tıklandığında tetiklenecek geri çağırma. Geri çağırma işlevine, tıklanan noktanın koordinatlarını (lon ve lat anahtarlarıyla) ve harita widget'ını içeren bir nesne iletilir.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-26 UTC."],[[["Registers a callback function that is triggered when the map is clicked, providing the coordinates of the click."],["Returns a unique ID that can be used to unregister the callback function later using `unlisten()`."],["`onClick` accepts a single argument: a callback function which receives an object containing longitude, latitude, and the map widget."]]],["A callback function is registered to be executed upon a map click. The `Map.onClick(callback)` method accepts this function as an argument and returns a unique string ID. This ID is used to unregister the callback later. The callback receives an object containing the longitude (`lon`), latitude (`lat`), and the map widget upon execution when a map click occurs.\n"]]