tilestrata-postgismvt icon indicating copy to clipboard operation
tilestrata-postgismvt copied to clipboard

Using with mapboxgl JS

Open luizotcarvalho opened this issue 6 years ago • 0 comments

Im using this with mapboxgl JS and I cannot view the geometries on the map because source-layer is required and tilestrata-postgismvt do not support layers inside the source.

map.addSource('countries', {
"type": "vector",
"tiles": ["localhost:5003/postgismvt_layer_name/{z}/{x}/{y}.mvt"]
});
 
map.addLayer({
"id": "countries",
"type": "fill",
"source": "countries",
"source-layer": "layers_inside_postgismvt_layer",
});

So Im wondering if has any way to add layers inside tilestrata-postgismvt to create nested layers.

luizotcarvalho avatar Feb 07 '19 15:02 luizotcarvalho