Reputation: 105
I need to add a Layers Group created in Geoserver (including several circle and line data sources)
I have just added into my map, pbf sources from Geoserver as circles and lines layers.
I have created some layersgroup on Geoserver and I'd like to add all this layer group on the map.
Would be possible to add as pbf source and reference the individual sources as layers / sub-layers into my map?
Upvotes: 0
Views: 405
Reputation: 105
Thanks @riastrad, I have just added using a source with the Layers Group name on Geoserver and the use of the source-layer attribute in mapbox-gl-js referencing the internal layers of the Geoserver Layers Group. Thanks again!
Upvotes: 1