Uncomment the following line to install geemap if needed.
# !pip install geemap
import ee
import geemap
Add a FeatureCollection from the Earth Engine Data Catalog
states = ee.FeatureCollection('TIGER/2018/States')
Map.addLayer(states, {}, "TIGER/2018/States")
Load a shapefile stored locally and convert it to ee.FeatureCollection
shp_path = '../data/us-states.shp'
states_shp = geemap.shp_to_ee(shp_path)
Map.addLayer(states_shp, {}, 'US States SHP')
Display the vector outline only
Map.addLayer(ee.Image().paint(states, 0, 2), {'palette': 'red'}, 'US States Image')
Map = geemap.Map()
Map