Closed Nikitoring closed 3 years ago
Hello @Nikitoring , I see two mistakes in your layers data:
features
should be an array of GeoJSON objects.v-bind="layer.source"
already pass all features through vl-source-vector
features
prop. So adding them with vl-feature
for loop not needed here.
But there is a limitation that you can't pass circles because there is no circle geometry in GeoJSON spec. You can workaround this by creating circular polygons or use vl-feature with vl-geom-circle loop over some another property that not conflicting with features
prop.There is a fixed demo https://jsfiddle.net/ghettovoice/qa8p913o/62/
Thanks a lot. I was inattentive
When I use dynamic component I get error: Unknown custom element: . And error: Error: Unsupported GeoJSON type: Circle
` <component
v-for="layer in layers"
:is="layer.cmp"
:key="layer.id"
v-bind="layer"
But when I try : `
I have no error