Instead of passing an OpenLayers map object to the init method, maybe we should pass the mappanel instance.