11.2.8.2: Using ipyleaflet for Interactive Mapping
The ipyleaflet Jupyter package for Python allows you to use the powerful interactive mapping features of Leafletjs within Jupyter and Libretexts documents. Here's a short example to demonstrate what can be done with ipyleaflet on Libretexts.
First we import the packages we'll need to use.
Then, we'll declare and display a map of the world.
Next, we can make a function to generate random heat maps and overlay them onto our existing map.
Then, we can even animate it as follows: