Closed wendellwt closed 2 years ago
Hello @wendellwt , vl-overlay component is for another purposes. It appends div container and bind it to some coordinate. So it not needed here.
As for LayerSwitcher usage: it expects custom layer fields that vuelayers doesn't support, but you can append them in the created
event handler for each layer that should be in the switcher panel.
Here is example https://jsfiddle.net/ghettovoice/qa8p913o/401/
Perfect! That works great!
Thank you again @ghettovoice !
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is it possible to use OpenLayers LayerSwitcher in vuelayers?
Would it be something like this?
And define the switcher as:
And then somehow insert the references to that layer into ol-layerswitcher:
Where should the group be defined? Does vuelayers automatically generate this?
Is the vl-overlay ref
ovly_ref
inserted into the group instead of the vl-layer-vector reflayer_ref
?Thank you