Search code examples
giszoominglayergeoserverwms

How to add layers with different zoom levels to the layer group in geoserver?


How to add layers with different zoom levels to the layer group in geoserver? For example, layer1 - zoom level 5-8, layer2 - zoom level 9-12

How to set the layers different zoom levels in geoserver?

Can you help me this issue? Thanks.


Solution

  • Layer Groups don't care about your visibility settings so you can add all of them together.

    If what you are actually asking is how to make a layer only visible at some zoom levels? then you need to add <MinScaleDenominator> and <MaxScaleDenominator> to your SLD (or other styling method) - see the sld cookbook for an example.