serverlessmaps
tinygpkg-data
serverlessmaps | tinygpkg-data | |
---|---|---|
2 | 1 | |
18 | 2 | |
- | - | |
6.3 | 6.6 | |
8 months ago | 7 months ago | |
TypeScript | Go | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
serverlessmaps
-
2024: The year of the OpenStreetMap vector maps
Have a look at https://www.serverlessmaps.com/ which uses PMTiles to generate the tiles from OSM data. It's also possible to host the PMTiles directly on S3 and use HTTP range requests to retrieve the desired bounding boxes. Under the hood, it uses CloudFront as CDN, Lambda@Edge functions and S3 (see architecture at https://github.com/serverlessmaps/serverlessmaps/#architectu...)
It's a very cost-effective solution as CloudFront has a 1TB/Month free tier, compared to hosted solutions.
-
Protomaps – A free and open source map of the world
We've had quite some success with deploying "serverless" maps, leveraging PMTiles. Have a look at https://github.com/serverlessmaps/serverlessmaps if you're interested to deploy this on AWS CloudFront/Lambda@Edge/S3...
tinygpkg-data
-
Protomaps – A free and open source map of the world
SVG is kind-of terrible for maps, but you can get pretty small with GeoPackage (read: sqlite). I recently spent a bit too long on exactly this problem and ended up with the following.
116KB - 5MB for country borders
16MB - 52MB for ~50K city/county level borders based on geoBoundaries
The range of sizes depends on how much custom compression/simplification you put into it. The source files are about 10x bigger, but that's already pretty small.
Topojson might be even smaller though.
Check the repo for details /selfplug https://github.com/SmilyOrg/tinygpkg-data
What are some alternatives?
basemaps - Basemap PMTiles generation and cartographic styles for OpenStreetMap data and more
gpq - Utility for working with GeoParquet
TileServer GL - Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
tippecanoe - Build vector tilesets from large collections of GeoJSON features.
go-pmtiles - Single-file executable tool for working with PMTiles archives
PlanetilerTorrent - a script to generate planetiler torrents
planetiler - Flexible tool to build planet-scale vector tilesets from OpenStreetMap data fast
tilemaker - Make OpenStreetMap vector tiles without the stack