One Map, one ScatterplotLayer, five points around San Francisco. Used to validate that the static-export plugin can preserve binary Parquet buffers and resolve IPY_MODEL_* sub-model references.
import geopandas as gpd
from shapely.geometry import Point
from lonboard import Map, ScatterplotLayer
points = [
Point(-122.4194, 37.7749),
Point(-122.4313, 37.7849),
Point(-122.4094, 37.7649),
Point(-122.4214, 37.7949),
Point(-122.4394, 37.7549),
]
gdf = gpd.GeoDataFrame({'geometry': points}, crs='EPSG:4326')
layer = ScatterplotLayer.from_geopandas(
gdf,
get_radius=300,
get_fill_color=[255, 0, 0, 200],
)
m = Map(
layers=[layer],
view_state={
'longitude': -122.4194,
'latitude': 37.7749,
'zoom': 12,
'pitch': 0,
'bearing': 0,
},
height=400,
)
m