Search code examples
geoserver

GeoServer: Set sequence of layers to be rendered in a WMS


how do I configure the sequence of layers in my GeoServer workspace such that when I read the layers in WMS in, say~ Tableau (below) or QGIS, the list of the layers available to be checked is in the sequence I need?

In ArcGIS Server, this can be easily set by aligning the layers in ArcMap before publishing it to the ArcGIS Server.

However, I can't seem to find such a configuration in GeoServer Admin.

Thanks!

enter image description here


Solution

  • Got a solution for this.

    I found out that arrangement of layers to be displayed on the client can be set by naming the layer "Name" field in order.

    E.g., (1 Coastline), (2 Waterbodies), (3 Roads) will display coastline as first layer, followed by waterbodies and roads.