[HN Gopher] Prettymapp - Create maps from OpenStreetMap data in ...
___________________________________________________________________
Prettymapp - Create maps from OpenStreetMap data in a Streamlit
webapp
Author : hggh
Score : 224 points
Date : 2023-08-22 13:58 UTC (9 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| sbdaman wrote:
| Etsy store generator
| craniumslows wrote:
| 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.
| hggh wrote:
| It looks like it's MIT:
| https://github.com/chrieke/prettymapp/blob/main/setup.py#L15...
| kpennell wrote:
| hn hug of death
| zyang wrote:
| For anyone else looking to customize OSM maps, here is a handy
| Figma plugin that imports OSM data.
| https://www.figma.com/community/plugin/1251030017228239072/V...
| born-jre wrote:
| 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
| Daviey wrote:
| 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/
| GaggiX wrote:
| Well it didn't last long
| Daviey wrote:
| 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 '.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. ```
| hk__2 wrote:
| > 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".
| Daviey wrote:
| 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
| tomcam wrote:
| Also hugged to death ;)
| llimllib wrote:
| 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
| raddan wrote:
| 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.
| randomdrake wrote:
| Examining the source, you can use coordinates instead of
| address when calling get_aoi.
|
| https://github.com/chrieke/prettymapp/blob/main/prettymapp/g...
| technovangelist wrote:
| Interesting app. I have also really enjoyed customizing maps in
| Ortelius which is no longer around. And also Felt at felt.com
| shmoe wrote:
| HN killed your app!
| charles_f wrote:
| Discussed a number of times in the past
| https://hn.algolia.com/?q=Prettymap
| lesquivemeau wrote:
| From the README:
|
| > Prettymapp is based on a rewrite of the fantastic prettymaps
| project by @marceloprates.
| whycome wrote:
| 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?
___________________________________________________________________
(page generated 2023-08-22 23:00 UTC)