TimeSurface surfA = server.surfaceCache.get(surfaceId);
if (surfA == null) return badRequest("Unrecognized surface ID.");
TileRequest tileRequest = new TileRequest(surfA.routerId, env, 256, 256);
MIMEImageFormat imageFormat = new MIMEImageFormat("image/png");
RenderRequest renderRequest =
new RenderRequest(imageFormat, Layer.TRAVELTIME, Style.COLOR30, true, false);
// TODO why can't the renderer be static?
return server.renderer.getResponse(tileRequest, surfA, null, renderRequest);
}