ddubrava / angular-yandex-maps

πŸ—ΊοΈ Yandex.Maps Angular components that implement the Yandex.Maps JavaScript API
https://ddubrava.github.io/angular8-yandex-maps/#/
MIT License
57 stars 7 forks source link

ymaps.control.Button typings are wrong #134

Closed ddubrava closed 3 years ago

ddubrava commented 3 years ago

🐞 Bug Report

✍️ Description

ymaps.control.Button doesn't have content, layout properties.

πŸ”¬ Reproduction

https://stackblitz.com/edit/button-control?file=src/app/app.component.ts

parameters: ymaps.control.Button;

this.parameters = {
  data: {
    content: 'Π–ΠΌΠ°ΠΊ-ΠΆΠΌΠ°ΠΊ',
    image:
      'https://mir-s3-cdn-cf.behance.net/project_modules/max_632/04de2e31234507.564a1d23645bf.gif',
    title: 'Π–ΠΌΠ°ΠΊ-ΠΆΠΌΠ°ΠΊ-ΠΆΠΌΠ°ΠΊ',
  },
  options: {
    layout: ButtonLayout,
  },
};

🌎 Environment

"angular8-yandex-maps": "^12.2.0",

ddubrava commented 3 years ago

Replace parameters: ymaps.control.Button with parameters: IButtonParameters;.