code: function(lonlat, icon) {
          this.lonlat = lonlat;
          
          var newIcon = (icon) ? icon : OpenLayers.Marker.defaultIcon();
          if (this.icon == null) {
              this.icon = newIcon;
          } else {
              this.icon.url = newIcon.url;
              this.icon.size = newIcon.size;
              this.icon.offset = newIcon.offset;
              this.icon.calculateOffset = newIcon.calculateOffset;
          }
          this.events = new OpenLayers.Events(this, this.icon.imageDiv);
      }
docs: Constructor: OpenLayers.Marker
  
  Parameters:
  lonlat - {<OpenLayers.LonLat>} the position of this marker
  icon - {<OpenLayers.Icon>}  the icon for this marker