Anúncio: todos os projetos não comerciais registrados para usar o Earth Engine antes de
15 de abril de 2025 precisam
verificar a qualificação não comercial para manter o acesso ao Earth Engine.
ui.Map.DrawingTools.onLayerConfig
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Registra um callback que é disparado depois que o nome ou a cor de uma camada é mudado.
Retorna um ID que pode ser transmitido para unlisten() para cancelar o registro da callback.
Uso | Retorna |
---|
DrawingTools.onLayerConfig(callback) | String |
Argumento | Tipo | Detalhes |
---|
isso: ui.map.drawingtools | ui.Map.DrawingTools | A instância ui.Map.DrawingTools. |
callback | Função | O callback a ser disparado depois que uma camada é configurada. O callback recebe dois parâmetros: o GeometryLayer configurado e o widget ui.Map.DrawingTools ao qual o listener de eventos está vinculado. |
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-26 UTC.
[null,null,["Última atualização 2025-07-26 UTC."],[[["\u003cp\u003eRegisters a callback function that is triggered when a layer's name or color is modified.\u003c/p\u003e\n"],["\u003cp\u003eProvides a unique ID that can be used to unregister the callback using the \u003ccode\u003eunlisten()\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eThe callback receives the modified \u003ccode\u003eGeometryLayer\u003c/code\u003e and the \u003ccode\u003eui.Map.DrawingTools\u003c/code\u003e widget as parameters.\u003c/p\u003e\n"]]],["The function `DrawingTools.onLayerConfig` registers a callback that triggers when a layer's name or color changes. This callback receives the modified `GeometryLayer` and the `ui.Map.DrawingTools` instance. The function returns a unique ID string, which can be used with `unlisten()` to remove the callback. This function allows user to be notified when a layer's configuration has changed.\n"],null,["# ui.Map.DrawingTools.onLayerConfig\n\n\u003cbr /\u003e\n\nRegisters a callback that's fired after a layer's name or color is changed.\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.onLayerConfig`(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 after a layer is configured. The callback is passed two parameters: the configured GeometryLayer and the ui.Map.DrawingTools widget that the event listener is bound to. |"]]