This may be related to how GeoServer handles default remote styles when populating the layer styles dialog for cascaded styles:
In the above image, no / blank default remote style is selected from the dropdown, while both available styles are 'selected' i.e. pushed into the selected list box.
The resulting MapML document has generated alternate style links, but the 'default' style gets selected
which correctly generates the styles options in the client:
but the bug appears when you select one of those options in the client, which follows the generated link to (in this case) style=slope_color, which returns a MapML document containing only this link:
when it should also contain a link to the slope_grey style from which the user navigated.
The above behaviour seems to be different than that which occurs when you select alternate styles for a local layer, for example the states shapefile has many available styles:
This may be related to how GeoServer handles default remote styles when populating the layer styles dialog for cascaded styles:
In the above image, no / blank default remote style is selected from the dropdown, while both available styles are 'selected' i.e. pushed into the selected list box.
The resulting MapML document has generated alternate style links, but the 'default' style gets selected
which looks bad, because you haven't selected a value for the default style, it treats a null string as the style name:
When you select one of the options that is not null string as the default style, it does indeed show these options correctly in the first response:
results in
which correctly generates the styles options in the client:
but the bug appears when you select one of those options in the client, which follows the generated link to (in this case) style=slope_color, which returns a MapML document containing only this link:
when it should also contain a link to the slope_grey style from which the user navigated.
The above behaviour seems to be different than that which occurs when you select alternate styles for a local layer, for example the states shapefile has many available styles:
which results in a MapML document containing:
Which correctly generates the options and when you follow one of the options, the return links are also correctly generated as options: