Attribution is always collapsed by default
iboates opened this issue · 1 comments
iboates commented
I have an attribution text but it is always collapsed by default. In vanilla OL you would have to create an Attribution object and set its collapsible
paramater to false. Can you do this in VueLayers?
ghettovoice commented
Hello @iboates ,
vl-map has a prop default-controls
though which you can configure initial set of map controls.
The value can be an object or a collection of controls (by default it is true - use default set of controls), you can find description of this object here https://openlayers.org/en/v6.15.1/apidoc/module-ol_control.html#.defaults.
So, for your case, to only reconfigure Attributions control you can set something like this:
<VlMap :default-controls="{attributionOptions: {collapsed: false, collapsible: true}}">...</VlMap>