Annuncio: tutti i progetti non commerciali registrati per l'utilizzo di Earth Engine prima del 15 aprile 2025 devono verificare l'idoneità non commerciale per mantenere l'accesso a Earth Engine.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Registra un callback che viene attivato quando cambia lo stato del cursore. Se la modifica è dovuta al trascinamento del cursore da parte dell'utente, l'evento non si attiverà finché il trascinamento non sarà completato.
Restituisce un ID che può essere passato a unlisten() per annullare la registrazione del callback.
Utilizzo
Resi
Slider.onChange(callback)
Stringa
Argomento
Tipo
Dettagli
questo: ui.slider
ui.Slider
L'istanza ui.Slider.
callback
Funzione
Il callback da attivare quando cambia lo stato del cursore. Il callback riceve il valore attuale del cursore e il widget cursore.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-26 UTC."],[[["The `onChange` method registers a callback function that is triggered when the slider's value changes, but only after a user completes dragging the slider."],["It returns a unique ID that can be used with the `unlisten()` method to remove the registered callback."],["The callback function receives the slider's current value and the slider widget itself as arguments when invoked."]]],["The `Slider.onChange` method registers a callback function to be executed when a slider's state changes. This callback is triggered after a user completes dragging the slider, not during the drag. The method accepts a callback function as an argument, which receives the slider's current value and the slider widget itself. It returns a unique ID (string) that can be used to unregister the callback later using `unlisten()`.\n"]]