from Hacker News

Show HN: ServerlessMaps – Host your own maps in the cloud

by tobilg on 5/24/24, 8:19 AM with 20 comments

Have a look at the website with an example map, https://www.serverlessmaps.com/, or read the accompanying blog post https://tobilg.com/serverless-maps-for-fun-and-profit
  • by robseed on 5/25/24, 12:04 AM

    https://protomaps.com/ is even simpler. Http range requests on a single static file.
  • by mikeocool on 5/24/24, 11:41 PM

    The architecture diagram in the repo is a little overwhelming for a Friday night — conceivably you could just toss a public pmtiles file on s3, and access it directly from the maplibre front-end, right? (As long as you’re not worried about someone coming along and downloading your whole tileset)
  • by bigredcapeclass on 5/25/24, 3:22 AM

    This is essentially the protonmaps getting started wrapped in some shell scripts and some infrastructure as code. See https://docs.protomaps.com/guide/getting-started.

    I see how this adds some value via the set up scripts. However, I do wish the author more clearly identified that this work, including much of the wording of the blog post, is largely borrowed from protonmaps/pmtiles docs.

  • by gvkhna on 5/25/24, 2:13 AM

    This looks great!

    I’ve done something similar with tippecanoe and mapshaper from gis files. That allowed me to use mapbox.js with my own hosted custom maps, as flat files. Very fast but still needed to run a server (tileserver-gl-light). This could negate that, very cool!

  • by 3np on 5/26/24, 12:37 AM

    Nice, thanks for sharing!

    https://github.com/headwaymaps/headway also worth checking out.

  • by throwaway5959 on 5/25/24, 4:20 AM

    > Please be aware that this will run for several hours depending on your machine, and will generate a PMTiles file around 45GB. This file will take some time to upload to S3 in the next step as well.

    Spin up a tiny EC2 instance with 100 GB volume if you want this to go much faster, assuming your upload is as bad as mine is.