Skip to content
Rodrigo E. Principe edited this page Oct 30, 2018 · 11 revisions

map

addImageCollection(collection, options)

Adds all images from an ee.ImageCollection to the Map. Argument options:

  • vis: visualization parameters (for all images)
  • active: true make layers to be active when added. Defaults to false for speed reasons
  • label: name for layers. It can be a property name, or one of:
    • system_date: the name will be the date of the image
    • system_id: the name will be the id of the image (default)

https://code.earthengine.google.com/b7b4f2db8faa0a9926caf5e033598a2a

removeLayer(name, map)

Remove a layer from a map by its name. If argument map is not passed, it will use the default Map

getLayer(name, map)

Get a layer by its name. Return the layer (not the eeObject).

var image = ee.Image(0) // test image
Map.addLayer(image, {min:0, max:1}, 'layer_name')

var layer = tools.map.getLayer('layer_name')

var layer_object = layer.getEeObject() // the image
var layer_name = layer.getName()
var layer_vis = layer.getVisParams()
// etc..
Clone this wiki locally