* The group where the object resides in (optional).
* @param context
* A MapContext object, responsible for actual drawing.
*/
public void paint(Paintable paintable, Object group, MapContext context) {
RasterLayer layer = (RasterLayer) paintable;
// Create the needed groups in the correct order:
context.getRasterContext().drawGroup(mapWidget.getGroup(RenderGroup.RASTER), layer); // layer.getDefaultStyle???
// Check layer visibility:
if (layer.isShowing()) {
context.getRasterContext().unhide(layer);
} else {
context.getRasterContext().hide(layer);
}