Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add Nuxt 3 support? #2

Open
productdevbook opened this issue Feb 24, 2023 · 1 comment
Open

Can you add Nuxt 3 support? #2

productdevbook opened this issue Feb 24, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@productdevbook
Copy link

No description provided.

@zdila
Copy link
Collaborator

zdila commented Mar 31, 2023

We may add it in the future. But AFAIK you can already use the control in Nuxt (Vue). See https://docs.maptiler.com/vuejs/maplibre-gl-js/how-to-use-maplibre-gl-js/ how to add a MapLibre GL map and under new Map(...) you could add the control with the following code (not tried):

const gc = markRaw(new GeocodingControl({ apiKey, maplibregl }));

map.value.addControl(gc);

@zdila zdila added the help wanted Extra attention is needed label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Development

No branches or pull requests

2 participants