perfectly-preserved-pie / larentals

An interactive map of for-sale & rental property listings in Los Angeles County, updated weekly.
https://wheretolive.la
15 stars 3 forks source link

Use Leaflet/JS to create the popup HTML rather than HTML strings #245

Open perfectly-preserved-pie opened 1 month ago

perfectly-preserved-pie commented 1 month ago

When I first made this app I decided to use raw HTML to display the marker popup info because it was easy (since dlx.dicts_to_geojson did the conversion for me).

I'd like to generate the popup HTML via Leaflet/JavaScript now, like I did for the oil well and crime GeoJSON layers. This would reduce the size of the dataframe (I wouldn't need the popup_html column anymore) and let me make changes to the HTML without having to regenerate it for the entire dataframe every single time I make a change.