Closed niklashaa closed 2 years ago
Hello @niklashaa ,
you are passing into the vl-source-vector
features
property, but I don't see it's definition in your code sample.
Show me how do you fill this source with features, pls.
Hi @ghettovoice I prepared a jsfiddle that reproduces the problem. Depending on the browser it's either "Maximum call stack size exceeded" (Chromium) or "InternalError: too much recursion" (Firefox).
Hi @niklashaa ,
there is fixed demo https://jsfiddle.net/ghettovoice/okbhs71L/7/.
You should not pass OpenLayers instances into Vue reactive props, because they have circular links.
Instead you should pass GeoJSON encoded features.
Also I have added data-projection="EPSG:4326"
because polygon coordinates seems in that projection.
Hello How can synchronize an array of openlayers features with the features prop of vl-layer-vector. The following lets Vue exit stating "too much recursion".