Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layers in sub-tree do not appear. #9

Open
shober-a opened this issue Feb 7, 2024 · 0 comments
Open

Layers in sub-tree do not appear. #9

shober-a opened this issue Feb 7, 2024 · 0 comments

Comments

@shober-a
Copy link

shober-a commented Feb 7, 2024

I am trying to add layers as children (geoJSON layers), but they do not appear when the boxes are checked. (They do appear if part of the top layer). That is, this works:

{
  type: 'leaflet',
  name: 'Boundaries',
  layer: placeGeom,
},
{
  type: 'leaflet',
  name: 'Field',
  layer: L.geoJSON( ... ),
}

but this does not:

{
  type: 'leaflet',
  name: 'Boundaries',
  layer: placeGeom,
},
{
  type: 'leaflet',
  name: 'Fields',
  children: [
    {
      type: 'leaflet',
      name: 'Field',
      layer: L.geoJSON( ... ),
    },
  ],
},

Am I missing something obvious?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant