Heatmapwidget
Importing HeatmapWidget and beamgis module for creating and displaying heatmaps¶
In [1]:
Copied!
from beamgis.heatmapwidget import HeatmapWidget
import beamgis
from beamgis.heatmapwidget import HeatmapWidget
import beamgis
Using the heatmap widgets in the output¶
In [2]:
Copied!
# Create a map object with a specified center, zoom level, and scroll wheel zoom enabled
m = beamgis.Map(center=(20, 0), zoom=2, scroll_wheel_zoom=True)
# Create a HeatmapWidget and associate it with the map object
widget = HeatmapWidget(map_obj=m)
# Display the heatmap widget and the map in the notebook
display(widget)
display(m)
# Create a map object with a specified center, zoom level, and scroll wheel zoom enabled
m = beamgis.Map(center=(20, 0), zoom=2, scroll_wheel_zoom=True)
# Create a HeatmapWidget and associate it with the map object
widget = HeatmapWidget(map_obj=m)
# Display the heatmap widget and the map in the notebook
display(widget)
display(m)
Using the heatmap gui¶
In [3]:
Copied!
# Create a new map object
# Add a heatmap GUI to the map
# Add a basemap GUI to the map
# Display the map with the added GUIs
m = beamgis.Map(center=(20, 0), zoom=5, scroll_wheel_zoom=True)
m.add_heatmap_gui()
m.add_basemap_gui()
m
# Create a new map object
# Add a heatmap GUI to the map
# Add a basemap GUI to the map
# Display the map with the added GUIs
m = beamgis.Map(center=(20, 0), zoom=5, scroll_wheel_zoom=True)
m.add_heatmap_gui()
m.add_basemap_gui()
m
Out[3]:
In [ ]:
Copied!