yandex-maps-unofficial / vue-yandex-map

Yandex Maps Component for VueJS
MIT License
359 stars 103 forks source link

При использовании nuxt и vue3 не отображается карта #460

Closed SerikK closed 1 year ago

SerikK commented 1 year ago
<template>
  <ClientOnly>
    <div class="map-content">
    <div style="position:relative;overflow:hidden;height: 300px;width: 100%">
      <YandexMap :coordinates="coordinates"></YandexMap>
    </div>
  </div>
</ClientOnly>
</template>

<script lang="ts">
import { useMapStore } from '~~/store/map'

export default defineComponent({
  setup() {
    const coordinates = ref([
      71.430411,
      51.128207
    ]);
    return {
      coordinates,
    }
  }

})
</script>

Не отображается карта

SerikK commented 1 year ago