How to get the current zoom of the map if it was created using bounds?

Do this:

 onApiAvaliable={(ymaps) => this.handleApiAvaliable(ymaps)}

Then get this object:
handleApiAvaliable(ymaps) {

But I can't find where exactly it is located zoom ?
March 19th 20 at 08:49
1 answer
March 19th 20 at 08:51
You need to get through the map object created by the constructor, in this case, myMap
var myMap;
myMap = new ymaps.Map(...)
zoom = myMap.getZoom()

most of the examples myMap is a local variable, so you need to declare it as global.

Find more questions by tags ReactYandex.MapsJavaScript