You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The docs state, that you can either register the plugin globally using app.use(OpenLayersMap /*, options */); or import the components as needed via import { Map, Layers, Sources } from "vue3-openlayers";.
However, when doing the later, the console is full with warnings that ol-options cant be injected.
Desktop (please complete the following information):
OS: win 10
Browser FF
Additional context
It is not entirely clear from the docs, if the plugin must still be registered even if using the explicit imports. However, I wonder why one would use explicit imports at all if the components are always globally available. The whole point is not to have global components when using the explicit import so it should just work like that.
The text was updated successfully, but these errors were encountered:
Describe the bug
The docs state, that you can either register the plugin globally using
app.use(OpenLayersMap /*, options */);
or import the components as needed viaimport { Map, Layers, Sources } from "vue3-openlayers";
.However, when doing the later, the console is full with warnings that
ol-options
cant be injected.https://stackblitz.com/edit/vue3-openlayers-template-n8rcokez?file=src%2Fmain.ts
Affected version(s)
Please run
npm list --depth=0 vue vue3-openlayers ol ol-ext ol-contextmenu
and paste the output below:To Reproduce
Steps to reproduce the behavior:
Expected behavior
No warning in the console
Desktop (please complete the following information):
Additional context
It is not entirely clear from the docs, if the plugin must still be registered even if using the explicit imports. However, I wonder why one would use explicit imports at all if the components are always globally available. The whole point is not to have global components when using the explicit import so it should just work like that.
The text was updated successfully, but these errors were encountered: