02 using basemaps
Uncomment the following line to install geemap if needed.
In [ ]:
Copied!
# !pip install geemap
# !pip install geemap
In [ ]:
Copied!
import geemap
import geemap
In [ ]:
Copied!
geemap.show_youtube("6J5ZCIUPXfI")
geemap.show_youtube("6J5ZCIUPXfI")
In [ ]:
Copied!
Map = geemap.Map(center=[40, -100], zoom=4)
Map
Map = geemap.Map(center=[40, -100], zoom=4)
Map
In [ ]:
Copied!
Map.add_basemap("HYBRID")
Map.add_basemap("HYBRID")
In [ ]:
Copied!
naip_url = "https://services.nationalmap.gov/arcgis/services/USGSNAIPImagery/ImageServer/WMSServer?"
Map.add_wms_layer(
url=naip_url, layers="0", name="NAIP Imagery", format="image/png", shown=True
)
naip_url = "https://services.nationalmap.gov/arcgis/services/USGSNAIPImagery/ImageServer/WMSServer?"
Map.add_wms_layer(
url=naip_url, layers="0", name="NAIP Imagery", format="image/png", shown=True
)
In [ ]:
Copied!
url = "https://mt1.google.com/vt/lyrs=m&x={x}&y={y}&z={z}"
Map.add_tile_layer(url, name="Google Map", attribution="Google")
url = "https://mt1.google.com/vt/lyrs=m&x={x}&y={y}&z={z}"
Map.add_tile_layer(url, name="Google Map", attribution="Google")
In [ ]:
Copied!
m = geemap.Map()
m.basemap_demo()
m
m = geemap.Map()
m.basemap_demo()
m