Плагин не нужен.
1. Вынести ключ в nuxt.config.ts, модуль оставить:
modules: [
'vue-yandex-maps/nuxt',
],
yandexMaps: {
apikey: '...',
},
2. В компоненте с картой импортировать нужные компоненты и типы при необходимости:
import { YandexMap, YandexMapDefaultSchemeLayer, YandexMapDefaultFeaturesLayer } from 'vue-yandex-maps'
import type { YMap, YMapMarkerProps, LngLat, LngLatBounds } from '@yandex/ymaps3-types'
3. Вывод карты:
<YandexMap
:settings="{
location: {
center: [37.617644, 55.755819],
zoom: 9,
},
}"
width="100%"
height="500px"
>
<YandexMapDefaultSchemeLayer />
<YandexMapDefaultFeaturesLayer />
</YandexMap>
4. Ну и смотреть документацию, там есть много примеров -
https://yandex-maps-unofficial.github.io/vue-yande...
Clientonly я не использовал.