-
Notifications
You must be signed in to change notification settings - Fork 111
map
Rodrigo E. Principe edited this page Oct 30, 2018
·
11 revisions
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 tofalse
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
Remove a layer from a map by its name. If argument map
is not passed, it will use the default 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..
- @author: Rodrigo E. Principe
- email: fitoprincipe82 at gmail
- Licence: MIT