David Bailey
David Bailey
Example implementation: ``` import random def random_color(): return "#" + hex(random.randint(0, 0xFF))[2:] + hex(random.randint(0, 0xFF))[2:] + hex(random.randint(0, 0xFF))[2:] features = [] for trajectory in mpd_trajectories.trajectories: color = random_color() df =...
> @davidbailey Do you have a suggestion for how to best handle the styling configuration? Good question. I took a look at how [pandas](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.plot.html), [geopandas](https://geopandas.org/docs/reference/api/geopandas.GeoDataFrame.plot.html), and [folium](https://python-visualization.github.io/folium/modules.html#folium.features.GeoJson) handle style. It...
The following worked for me: ``` import numpy from lonboard import Map, SolidPolygonLayer from mapclassify import JenksCaspall layer = SolidPolygonLayer.from_geopandas(zones_interpolated, opacity=0.2) jc = JenksCaspall( zones_interpolated["ProductionAttractionSum Density"].fillna(0), k=20 ) colors =...