code: function(map) {        
          OpenLayers.Layer.Vector.prototype.setMap.apply(this, arguments);
          map.events.register("moveend", this, this.onMoveEnd);
      }
docs: Method: setMap
  The layer has been added to the map.
  
  Parameters:
  map - {<OpenLayers.Map>}