tilestrata-postgismvt
tilestrata-postgismvt copied to clipboard
Using with mapboxgl JS
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.