* @throws IllegalArgumentException
*/
public static TileSource getTileSource(ImageryInfo info) throws IllegalArgumentException {
if (info.getImageryType() == ImageryType.TMS) {
checkUrl(info.getUrl());
TMSTileSource t = new TemplatedTMSTileSource(info.getName(), info.getUrl(), info.getMinZoom(), info.getMaxZoom());
info.setAttribution(t);
return t;
} else if (info.getImageryType() == ImageryType.BING)
return new CachedAttributionBingAerialTileSource();
else if (info.getImageryType() == ImageryType.SCANEX) {