mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* [maps] fix Unable to load layers from WMS spec for a specific URL
* eslint
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit d7bce1c95e
)
Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
This commit is contained in:
parent
d511aeca95
commit
c5ac8503f1
1 changed files with 6 additions and 2 deletions
|
@ -122,13 +122,17 @@ function reduceLayers(path, layers) {
|
|||
const updatedStyles = [...accumulatedCapabilities.styles];
|
||||
if (_.has(layer, 'Style[0]')) {
|
||||
updatedStyles.push(
|
||||
createOption(path, _.get(layer, 'Style[0].Title[0]'), _.get(layer, 'Style[0].Name[0]'))
|
||||
createOption(
|
||||
path,
|
||||
_.get(layer, 'Style[0].Title[0]', ''),
|
||||
_.get(layer, 'Style[0].Name[0]', '')
|
||||
)
|
||||
);
|
||||
}
|
||||
return {
|
||||
layers: [
|
||||
...accumulatedCapabilities.layers,
|
||||
createOption(path, layer.Title[0], layer.Name[0]),
|
||||
createOption(path, _.get(layer, 'Title[0]', ''), _.get(layer, 'Name[0]', '')),
|
||||
],
|
||||
styles: updatedStyles,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue