code: function(type, featureId, symbolizer, strokeScaling) {
          var hex = this.featureIdToHex(featureId);
          if (type == "fill") {
              this.hitContext.globalAlpha = 1.0;
              this.hitContext.fillStyle = hex;
          } else if (type == "stroke") {  
              this.hitContext.globalAlpha = 1.0;
              this.hitContext.strokeStyle = hex;
              // bump up stroke width to deal with antialiasing. If strokeScaling is defined, we're rendering a symbol 
              // on a transformed canvas, so the antialias width bump has to scale as well.
              if (typeof strokeScaling === "undefined") {
                  this.hitContext.lineWidth = symbolizer.strokeWidth + 2;
              } else {
                  if (!isNaN(strokeScaling)) { this.hitContext.lineWidth = symbolizer.strokeWidth + 2.0 / strokeScaling; }
              }
          } else {
              this.hitContext.globalAlpha = 0;
              this.hitContext.lineWidth = 1;
          }
      }
docs: Method: setHitContextStyle
  Prepare the hit canvas for drawing by setting various global settings.
  
  Parameters:
  type - {String} one of 'stroke', 'fill', or 'reset'
  featureId - {String} The feature id.
  symbolizer - {<OpenLayers.Symbolizer>} The symbolizer.