Maps4HTML / geoserver

Maps for HTML MapML Extension / plug-in development fork of GeoServer
https://docs.geoserver.org/latest/en/user/extensions/mapml/index.html
Other
3 stars 1 forks source link

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

Open prushforth opened 5 months ago

prushforth commented 5 months ago

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 \ reflects the overall scale range.

canada-scaled.sld.txt