You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/geoview-core/src/api/config/validation-classes/raster-validation-classes/ogc-wms-layer-entry-config.ts
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -175,13 +175,14 @@ export class OgcWmsLayerEntryConfig extends AbstractBaseLayerEntryConfig {
175
175
* If styles are not yet cached, the method reads them from the layer metadata
176
176
* and initializes the internal style list. The styles correspond to named
177
177
* style definitions advertised by the WMS service (from the `Style` section of the metadata).
178
-
* @returns {string[] | undefined} The list of available style names, or `undefined` if none are defined.
178
+
*
179
+
* @returns The list of available style names, or `undefined` if none are defined.
179
180
*/
180
181
getStyles(): string[]|undefined{
181
182
// If no styles defined
182
183
if(!this.#styles){
183
184
// Read styles from the metadata
184
-
conststyles=this.getLayerMetadata()?.Style;
185
+
conststyles=this.getStylesMetadata();
185
186
186
187
// Update internal styles list
187
188
if(styles?.length||0>1){
@@ -193,6 +194,17 @@ export class OgcWmsLayerEntryConfig extends AbstractBaseLayerEntryConfig {
193
194
returnthis.#styles;
194
195
}
195
196
197
+
/**
198
+
* Retrieves the full style metadata objects available for this layer.
199
+
* Returns the complete `TypeMetadataWMSCapabilityLayerStyle` objects from the layer metadata,
200
+
* which include style names, legend URLs, and other style-related information.
201
+
*
202
+
* @returns The list of available style metadata objects, or `undefined` if none are defined.
0 commit comments