code: function() {
      var self = this;
      var index = -1;
      this.gmapsMap.overlayMapTypes.forEach(
        function(layer, i) {
          if (layer == self) {
            index = i;
          }
        }
      );
      return index;
    }
docs: hack function to search layer inside google maps layers