Open productdevbook opened 1 year ago
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):
new Map(...)
const gc = markRaw(new GeocodingControl({ apiKey, maplibregl })); map.value.addControl(gc);
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):