0

There are 2 options for base map in Earth Engine: Map (default) and Satellite. I would like to have Satellite as default base map when I press ctrl + enter (or click run button). I know that I can switch between the 2 options by clicking on the desired one, but I would like to make this automatic.

I tried:

Map.setOptions({
  mapTypeId: "SATELLITE"
});

This almost does what I want expect that all labels and countries / administrative boundaries are turned off. How can I have both the satellite base map and these features?

I checked this, but I can't figure out how to achieve what I want.

Liman
  • 1,270
  • 6
  • 12

1 Answers1

1

Does this help:

Map.setOptions('HYBRID')

https://developers.google.com/earth-engine/apidocs/map-setoptions

mvsc1
  • 118
  • 5
  • Thanks, that got me what I want. BTW, I confess that I haven't tried these options (i.e. "SATELLITE", "HYBRID" or "TERRAIN") before posting the question. Are they documented somewhere? It would be good if I can manipulation things, for examples, remove labels and keep the boundaries. – Liman Jan 17 '21 at 18:21