I am working on a Google Earth Engine app and I would like to allow the user to draw an area of interest polygon (AOI). After drawing, I want to 1) generate the map layer from the drawing geometry layer; 2) not show the geometry layer without removing it. How can I do this? My script below can generate the map layer but cannot hide the geometry layer.

This is the link of my code:


1 Answer 1


before end the chartNdviTimeSeries function, just include:


link of example

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.