tilelive-postgis
tilelive-postgis copied to clipboard
Several Layer on Single Source
How can i get multiple layers in the same source?
Example: In tilesplash i can combine multiple query and getting multiple layer on the same source, like so
app.layer('multiLayer', function(tile, render){
render({
circles: 'SELECT ST_AsGeoJSON(the_geom) as the_geom_geojson FROM circles WHERE ST_Intersects(the_geom, !bbox_4326!)',
squares: 'SELECT ST_AsGeoJSON(the_geom) as the_geom_geojson FROM squares WHERE ST_Intersects(the_geom, !bbox_4326!)'
});
});
I back this issue