Live data from Hacker News

Prettymapp – Create maps from OpenStreetMap data in a Streamlit webapp

github.com

11–20 of 30 posts

Re: Prettymapp – Create maps from OpenStreetMap data in a Streamlit webapp

#11

Can anyone help clarify what license this is released under? The original was AGPL if the rewrite is permissively licensed that would be pretty cool.

It looks like it's MIT: https://github.com/chrieke/prettymapp/blob/main/setup.py#L15...

Re: Prettymapp – Create maps from OpenStreetMap data in a Streamlit webapp

#12
post #10
post #9

Earlier quoted context omitted.

Argh! It looks like a badly handled error in the app, which I can't blame the platform for... but it looks like the platform gives great access to error logging 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 '.c…

> but it looks like the platform gives great access to error logging Where do you see errors in the log? In the snippet you shared, I see only a couple warning then "please fix the errors".

As the site owner of MY deployment, it gives me a box down the bottom right which also allows me to restart the app. It's worth deploying it yourself to experiment with the platform.

  1) Fork the app in Github
  2) Create an account on https://streamlit.io/
  3) New app, and link to your fork in Github

Re: Prettymapp – Create maps from OpenStreetMap data in a Streamlit webapp

#13
post #6

Great work, thanks! 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/

To run it locally, I did:

    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

edit 2: https://github.com/chrieke/prettymapp/issues/26

Re: Prettymapp – Create maps from OpenStreetMap data in a Streamlit webapp

#17
post #6

Great work, thanks! 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/

Also hugged to death ;)

Re: Prettymapp – Create maps from OpenStreetMap data in a Streamlit webapp

#18
It's funny when different incarnation of thing people wants happens

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

Re: Prettymapp – Create maps from OpenStreetMap data in a Streamlit webapp

#19

Discussed a number of times in the past https://hn.algolia.com/?q=Prettymap

From the README: > Prettymapp is based on a rewrite of the fantastic prettymaps project by @marceloprates.

They should have maybe gone with a name that pays tribute but differentiates. PrettiMapp? French derived: JoliesCarte? BellesCartes? JollyCart? BellCart?

edit: those sound like ecommerce spots. What about CharMApp?

Re: Prettymapp – Create maps from OpenStreetMap data in a Streamlit webapp

#20
Wow. This is great. Is there API documentation? I'd love to be able to center the map at a GPS location instead of a city/town name. If I use my city's name, I find that it uses the city center, which is a reasonable default, but my neighborhood is actually quite far from that so it does not appear on the map unless I zoom way out.
Post reply on HN