maptiler / maptiler-geocoding-control

The Javascript & TypeScript Map Control component for MapTiler Geocoding service! Easy to be integrated into any JavaScript mapping application.
https://maptiler.com/cloud/geocoding
BSD 3-Clause "New" or "Revised" License
20 stars 4 forks source link

Can you add Nuxt 3 support? #2

Open productdevbook opened 1 year ago

zdila commented 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):

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

map.value.addControl(gc);