tilelive-postgis icon indicating copy to clipboard operation
tilelive-postgis copied to clipboard

Several Layer on Single Source

Open ilomon10 opened this issue 6 years ago • 1 comments

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!)'
  });
});

ilomon10 avatar Jul 21 '18 19:07 ilomon10

I back this issue

Captain-Oski avatar Jul 24 '19 14:07 Captain-Oski