Prettymapp – Create maps from OpenStreetMap data in a Streamlit webapp
github.com
github.com
As the example app has been DoS'd, I decided to try and deploy my own on streamlit (having never used it before). The deployment process isn't documented in your project, but it was super easy to do using the upstream docs!
Welcome to try mine: https://wfcmzortl5n8cqhdowr6dm.streamlit.app/
I've "rebooted" the app, but no idea how long it will last again!
```
/home/adminuser/venv/lib/python3.9/site-packages/geopandas/array.py:158: ShapelyDeprecationWarning: The array interface is deprecated and will no longer work in Shapely 2.0. Convert the '.coords' to a numpy array instead.
return GeometryArray(vectorized.from_shapely(data), crs=crs)
/home/adminuser/venv/lib/python3.9/site-packages/geopandas/array.py:158: ShapelyDeprecationWarning: The array interface is deprecated and will no longer work in Shapely 2.0. Convert the '.coords' to a numpy array instead.
return GeometryArray(vectorized.from_shapely(data), crs=crs)
[15:49:17] Streamlit server consistently failed status checks
[15:49:17] Please fix the errors, push an update to the git repo, or reboot the app.
```Where do you see errors in the log? In the snippet you shared, I see only a couple warning then "please fix the errors".
1) Fork the app in Github
2) Create an account on https://streamlit.io/
3) New app, and link to your fork in Github pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -r streamlit-prettymapp/requirements.txt
streamlit run streamlit-prettymapp/app.py
(The `streamlit` command is installed by the third requirements.txt)It does properly show the Macau map, but is hanging on `Creating map... (may take up to a minute)`; I wonder if there's an OSM api key that is not working, or something like that.
edit: looks like the issue is just that it's very slow in places with a decent amount of OSM stuff? It's actually hanging on converting the OSM to geometries, as it tries to convert 400k objects
https://github.com/chrieke/prettymapp/blob/main/prettymapp/g...
> Prettymapp is based on a rewrite of the fantastic prettymaps project by @marceloprates.
edit: those sound like ecommerce spots. What about CharMApp?
I'm not sure if this is really a rewrite, or simply an adaptation. I don't think the license could have changed, be advised.
Some nice examples of themed maps on their website.
mainstream functional programming => expected (Ocamal/haskel) => got js libary with functionalness (REACT)
Immediate mode GUI => expected (imgui) => gardio/streamlit
i have not tried gardio/streamlit myself but quick glance that's what it feels like