Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A Style Group is only visible at the zoom range allowed by the first NamedLayer in the group #60

Open
prushforth opened this issue Mar 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@prushforth
Copy link
Member

A Style Group in GeoServer is created with a Style Layer Descriptor SLD document. It is a way of adding multiple layers to a Layer Group in one line item.

We created a Style Layer Descriptor for Canadian Provinces and Territories (attached).

There are 7 layers in the group, 1-7. Each has successively higher resolution shape data. They are all styled identically, except that each layer only occupies a designated style range as follows:

file min scale max scale denominator

1.shp - 20,000,000 - 100,000,000
2.shp - 10,000,000 - 20,000,000
3.shp - 2,000,000 - 10,000,000
4.shp - 500,000 - 2,000,000
5.shp - 200,000 - 500,000
6.shp - 100,000 - 200,000
7.shp - 1 - 100,000

Unfortunately, the MapML extension is limiting the zoom range to only that spanned by 1.shp. i.e. 0-3. The system does not note a min/max scale in the capabilities document, so I think this is a bug.

If I create a Layer Group, and add each layer, each with its own sld, the <map-input type=zoom> reflects the overall scale range.

canada-scaled.sld.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant