Liman
Liman

Reputation: 1300

How to customize one of the standard Google Maps API map types

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.

Upvotes: 0

Views: 300

Answers (1)

mvsc1
mvsc1

Reputation: 128

Does this help:

Map.setOptions('HYBRID')

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

Upvotes: 1

Related Questions