for (WayPoint p : data.waypoints) {
points.add(p.getCoor());
}
final WMSLayer layer = askWMSLayer();
if (layer != null) {
PleaseWaitRunnable task = new PleaseWaitRunnable(tr("Precaching WMS")) {
private PrecacheTask precacheTask;
@Override
protected void realRun() throws SAXException, IOException, OsmTransferException {
precacheTask = new PrecacheTask(progressMonitor);