Open Brmm opened 4 years ago
Couldn't you spread ...
the array to be a top-level child of Map?
I tried that but unfortunately it's not working, try for yourself.
I'm facing similar problem and using the "magic comment" while waiting for the fix.
I made a PR almost a year ago but it's not being accepted. It's a very small fix.
Consider the following, a fixed GeoJSONLayer combined with a variable amount of GeoJSONLayer's.
This gives a typescript error
Something is wrong with the
children
's definition onProp
.Also, adding a comment above the Element[] part fixes it for some reason.