Tiles work great, but for large datasets tile generation can be slow. To fix this we need to add simplification to tiles based on zoom level of the requested tiles.
So basically we'll pass a simplify flag with the zoom level into the postgis select method. The query to the db handle selecting features with ST_SimplifyPreserveTopology with a tolerance based on zoom. This should make generation faster and reduce the size of things like geojson and pbf tiles.
Tiles work great, but for large datasets tile generation can be slow. To fix this we need to add simplification to tiles based on zoom level of the requested tiles.
So basically we'll pass a simplify flag with the zoom level into the postgis select method. The query to the db handle selecting features with ST_SimplifyPreserveTopology with a tolerance based on zoom. This should make generation faster and reduce the size of things like geojson and pbf tiles.