code: function (lonlat) {
          var viewPortPx = null;
          if ( (this.mapObject != null) && 
               (this.getMapObjectCenter() != null) ) {
  
              var moLonLat = this.getMapObjectLonLatFromOLLonLat(lonlat);
              var moPixel = this.getMapObjectPixelFromMapObjectLonLat(moLonLat);
          
              viewPortPx = this.getOLPixelFromMapObjectPixel(moPixel);
          }
          return viewPortPx;
      }
docs: Method: getViewPortPxFromLonLat
  Get a pixel location from a map location
  
  Parameters:
  lonlat - {<OpenLayers.LonLat>}
  
  Returns:
  {<OpenLayers.Pixel>} An OpenLayers.Pixel which is the passed-in
  OpenLayers.LonLat, translated into view port pixels by map lib
  If map lib is not loaded or not centered, returns null