72 time slider gui
In [1]:
Copied!
import ee
import geemap
import ee
import geemap
In [2]:
Copied!
# geemap.update_package()
# geemap.update_package()
In [3]:
Copied!
Map = geemap.Map(center=[37.75, -122.45], zoom=12)
S2 = (
ee.ImageCollection('COPERNICUS/S2_SR')
.filterBounds(ee.Geometry.Point([-122.45, 37.75]))
.filterMetadata('CLOUDY_PIXEL_PERCENTAGE', 'less_than', 10)
)
vis_params = {"min": 0, "max": 4000, "bands": ["B8", "B4", "B3"]}
Map.addLayer(S2, {}, "Sentinel-2", False)
Map.add_time_slider(S2, vis_params)
Map
Map = geemap.Map(center=[37.75, -122.45], zoom=12)
S2 = (
ee.ImageCollection('COPERNICUS/S2_SR')
.filterBounds(ee.Geometry.Point([-122.45, 37.75]))
.filterMetadata('CLOUDY_PIXEL_PERCENTAGE', 'less_than', 10)
)
vis_params = {"min": 0, "max": 4000, "bands": ["B8", "B4", "B3"]}
Map.addLayer(S2, {}, "Sentinel-2", False)
Map.add_time_slider(S2, vis_params)
Map
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Input In [3], in <cell line: 12>() 9 vis_params = {"min": 0, "max": 4000, "bands": ["B8", "B4", "B3"]} 11 Map.addLayer(S2, {}, "Sentinel-2", False) ---> 12 Map.add_time_slider(S2, vis_params) 13 Map AttributeError: 'Map' object has no attribute 'add_time_slider'
In [ ]:
Copied!
Last update:
2022-03-14