function componentToHex(c) {
      var hex = c.toString(16);
      return hex.length == 1 ? "0" + hex : hex;
    }
View to know which is the map zoom.

Usage:

var zoomInfo = new cdb.geo.ui.ZoomInfo({ model: map });
mapWrapper.$el.append(zoomInfo.render().$el);