Geomap: support multiple layers (#40906)

This commit is contained in:
Ryan McKinley
2021-10-27 14:49:11 -07:00
committed by GitHub
parent 14225b07b2
commit 45e1765733
17 changed files with 786 additions and 457 deletions

View File

@@ -136,12 +136,16 @@ export function fillOptionsPaneItems(
// Nested options get passed up one level
if (isNestedPanelOptions(pluginOption)) {
const sub = access.getValue(pluginOption.path);
const subAccess = pluginOption.getNestedValueAccess(access);
const subContext = subAccess.getContext
? subAccess.getContext(context)
: { ...context, options: access.getValue(pluginOption.path) };
fillOptionsPaneItems(
pluginOption.getBuilder(),
pluginOption.getNestedValueAccess(access),
subAccess,
getOptionsPaneCategory,
{ ...context, options: sub },
subContext,
category // parent category
);
continue;