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

Подключение карт #479

Closed
JordanHit opened this issue Dec 4, 2023 · 1 comment
Closed

Подключение карт #479

JordanHit opened this issue Dec 4, 2023 · 1 comment

Comments

@JordanHit
Copy link

Помогите. пожалуйста подключить карту, вроде всё делал по документации, но в итоге просто пустой контейнер
<div id="test"> <yandex-map :settings="settings" :coords="coords" :zoom="10" @click="onClick" > <ymap-marker :coords="coords" marker-id="123" hint-content="some hint" /> </yandex-map> </div>

  `data() {
return {
  date: '',
  map: null,
  coords: [
    54.82896654088406,
    39.831893822753904
  ],
  settings: {
    apiKey: 'c0dc75c0-2345-4452-9262-47e82c0147e9',
    lang: 'ru_RU',
    coordorder: 'latlong',
    enterprise: false,
    version: '2.1'
  },
}

},`

methods: { onClick(e) { this.coords = e.get('coords'); } },

@daniluk4000
Copy link
Member

Проверьте настройки ширины и высоты для Карты. Также можно воспользоваться версией 2.х, где есть авто-ресайз

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants