req.setBbox(new Envelope(box.getMinX(), box.getMaxX(), box.getMinY(), box.getMaxY()));
WebMap result = webMapService.getMap(req);
tiles.addTile(z, (int) x, (int) (flipy ? gridSubset.getNumTilesHigh(z)
- (y + 1) : y), toBytes(result));
// Cleanup
cleaner.finished(null);
}
}
}
}