V
V
Vladimir Golub2019-03-20 17:38:56
Yandex maps
Vladimir Golub, 2019-03-20 17:38:56

How to make non-standard zoom buttons in Yandex maps, where to get zoom and zoom events?

Made buttons through button layout .
Can't find increase or decrease events?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-03-20
@RazerVG

map.events.add('boundschange', function(e) {
  const
    newZoom = e.get('newZoom'),
    oldZoom = e.get('oldZoom');

  if (newZoom !== oldZoom) {
    ...
  }
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question