Closed kalyncoose closed 3 years ago
@kalyncoose thanks for report! Should work as expected in v0.11.32
in v0.12.3, attribute default-controls
works well, but controls
not.
@scil default-controls
in v0.12 it is renamed controls
from v0.11
Hello and thank you so much for this Vue library for OpenLayers @ghettovoice ! I am refactoring a Leaflet (Vue2-leaflet) project into VueLayers and have had an easy time so far.
My issue is with the
default-controls
orcontrols
parameter for thevl-map
component. I combed through the existing issues and documentation first before posting. It appears that the parameter, when set tofalse
, does not remove the default zoom control that appears in the upper-left corner of the map. See my component:Screenshot (I have a custom search bar, but you can see the zoom control is the blue peaking out behind it):
Here is the documentation page for the parameter. It used to be called
default-controls
but now iscontrols
. I tried both parameters and no luck, the zoom controls keep appearing. I am using this version in mypackage.json
:"vuelayers": "^0.11.31",
Should I try accessing the olMap instance and manually setting the controls to false? If so, could you please provide some example code of how to access the underlying map and its controls, thanks!