Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept image collections in Map.addLayer #48

Open
gena opened this issue Jan 14, 2020 · 0 comments
Open

Accept image collections in Map.addLayer #48

gena opened this issue Jan 14, 2020 · 0 comments
Projects

Comments

@gena
Copy link
Collaborator

gena commented Jan 14, 2020

Add support for image collections in Map.addLayer

import ee
from ee_plugin import Map
image = ee.ImageCollection('NOAA/VIIRS/DNB/MONTHLY_V1/VCMCFG') \
  .filterDate('2017-01-01', '2017-01-02')\
  .select('avg_rad')
vis = {'bands': ['avg_rad'], 'min': 0.0, 'max': 30.0, 'palette': ['000004', '160b39', '400a67', '69166e', '902568', 'd94d3d', 'f1711f', 'fb9d07', 'f8cd37', 'fcffa4']}
Map.addLayer(image, vis, 'image')
Map.setCenter(37.7743, 48.0121, 13)
@gena gena added this to To do in 1.0.0 Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
1.0.0
To do
Development

No branches or pull requests

1 participant