Skip to content

Basic example doesn't work under foliumap plotting backend #1719

Answered by giswqs
Gui-FernandesBR asked this question in Q&A
Discussion options

You must be logged in to vote

Folium map is a one way street. You can need to add all layers before displaying the map. Once the map is displayed, no additional changes can be made to the map. In your example, you already display the map after creating it, all EE layers added later on would not be added to the map.

import ee
import geemap.foliumap as geemap

lat, lon = -23.5546721, -46.7318389
my_map = geemap.Map(center=(lat, lon), zoom=15)

dem = ee.Image('USGS/SRTMGL1_003')
landcover = ee.Image("ESA/GLOBCOVER_L4_200901_200912_V2_3").select('landcover')
landsat7 = ee.Image('LANDSAT/LE7_TOA_5YEAR/1999_2003')
states = ee.FeatureCollection("TIGER/2018/States")

dem_vis = {
'min': 0,
'max': 4000,
'palette': ['006633', 'E…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by giswqs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants