0

The problem with the options property.panelMaxMapArea https://tech.yandex.ru/maps/doc/jsapi/2.1/ref/reference/Balloon-docpage/#param-options.panelMaxMapArea

How do I specify the size of the map, so the balloon in the form of a panel was only if the map width is less than 480px?

usr1234567
  • 21,601
  • 16
  • 108
  • 128

1 Answers1

1

Seems, documentation contains inaccuracy description, just use setter for options properties, something like this:

balloon.options.set('panelMaxMapArea', 480);
balloon.options.set('closeButton', false);
// and etc...
Igor Semin
  • 2,486
  • 1
  • 20
  • 21