2

I am trying to remove the "Geometry Imports" and "Drawing" tools from the Map in Earth Engine. I have tried

Map.drawingTools().clear();

But it did not work. I was not able to find any solution from internet. Is there anyone who can help me with this issue?

1 Answer 1

3

If you build the Map yourself you can add whatever widgets you like after that.

ui.root.clear();

ui.root.add(ui.Map());

========================== Edit ==============

You can remove the drawingTools control on the default Map by setting the options of the map.

Map.setControlVisibility({
  drawingToolsControl:false
})
2
  • #Sean Roulet, thanks. I don't build the Map myself. I would like to remove the default Map. Mar 8, 2020 at 21:36
  • 1
    See my change above Mar 8, 2020 at 21:40

Your Answer

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

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