Colorbar
In [1]:
Copied!
import leafmap.foliumap as leafmap
import leafmap.foliumap as leafmap
In [2]:
Copied!
Map = leafmap.Map()
url = "https://elevation.nationalmap.gov/arcgis/services/3DEPElevation/ImageServer/WMSServer?"
Map.add_wms_layer(
url,
layers="3DEPElevation:Hillshade Elevation Tinted",
name="USGS 3DEP Elevation",
format="image/png",
transparent=True,
)
Map = leafmap.Map()
url = "https://elevation.nationalmap.gov/arcgis/services/3DEPElevation/ImageServer/WMSServer?"
Map.add_wms_layer(
url,
layers="3DEPElevation:Hillshade Elevation Tinted",
name="USGS 3DEP Elevation",
format="image/png",
transparent=True,
)
In [3]:
Copied!
colors = ['006633', 'E5FFCC', '662A00', 'D8D8D8', 'F5F5F5']
vmin = 0
vmax = 4000
Map.add_colorbar(colors=colors, vmin=vmin, vmax=vmax)
Map
colors = ['006633', 'E5FFCC', '662A00', 'D8D8D8', 'F5F5F5']
vmin = 0
vmax = 4000
Map.add_colorbar(colors=colors, vmin=vmin, vmax=vmax)
Map
Out[3]:
Make this Notebook Trusted to load map: File -> Trust Notebook
Last update:
2022-03-29