Heatmap
In [1]:
Copied!
# !pip install geojp
# !pip install geojp
Specify the file path to the CSV. It can either be a file locally or on the Internet.
In [2]:
Copied!
filepath = "https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/us_cities.csv"
filepath = "https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/us_cities.csv"
Use the ipyleaflet plotting backend.
In [3]:
Copied!
import geojp.geojp as geojp
import geojp.geojp as geojp
Specify the latitude, longitude, and value columns to create the heat map.
In [4]:
Copied!
m = geojp.Map()
m.add_heatmap(
filepath,
latitude="latitude",
longitude="longitude",
value="pop_max",
name="Heat map",
radius=20,
)
m
m = geojp.Map()
m.add_heatmap(
filepath,
latitude="latitude",
longitude="longitude",
value="pop_max",
name="Heat map",
radius=20,
)
m
Out[4]:
Map(center=[20, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text…