code: function(location) {
  
          if(!this.layer || !this.geometry.move){
              //do nothing if no layer or immoveable geometry
              return undefined;
          }
  
          var pixel;
          if (location.CLASS_NAME == "OpenLayers.LonLat") {
              pixel = this.layer.getViewPortPxFromLonLat(location);
          } else {
              pixel = location;
          }
          
          var lastPixel = this.layer.getViewPortPxFromLonLat(this.geometry.getBounds().getCenterLonLat());
          var res = this.layer.map.getResolution();
          this.geometry.move(res * (pixel.x - lastPixel.x),
                             res * (lastPixel.y - pixel.y));
          this.layer.drawFeature(this);
          return lastPixel;
      }
docs: Method: move
  Moves the feature and redraws it at its new location
  
  Parameters:
  location - {<OpenLayers.LonLat> or <OpenLayers.Pixel>} the
  location to which to move the feature.