code: function() {
          if (OpenLayers.Control.prototype.activate.apply(this, arguments)) {
              this.map.addLayer(this.gratLayer);
              this.map.events.register('moveend', this, this.update);     
              this.update();
              return true;            
          } else {
              return false;
          }
      }
docs: APIMethod: activate