React-native-mapbox-gl: Get the current map zoom level.

Created on 9 Jan 2018  路  1Comment  路  Source: nitaliano/react-native-mapbox-gl

I have a use case where I wanted to press a cluster and zoom the map by (currentZoom + 2) but I realised that it's not possible at the moment to retrieve the current zoomLevel.

mapbox-gl-js has this method for example:
https://www.mapbox.com/mapbox-gl-js/api/#map#getzoom

It would be great to have it, probably on the ref this.map.getZoom()

Most helpful comment

getZoom support has been merged into master

>All comments

getZoom support has been merged into master

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Craytor picture Craytor  路  3Comments

VentsislavDinev picture VentsislavDinev  路  3Comments

lernerbot picture lernerbot  路  3Comments

Gp2mv3 picture Gp2mv3  路  3Comments

lucasbento picture lucasbento  路  3Comments