FrankRP
FrankRP

Reputation: 105

Add a Geoserver Layers Group into a map created with mapbox-gl-js

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

Answers (1)

FrankRP
FrankRP

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

Related Questions