protected Grabber getGrabber(boolean localOnly) {
if (getInfo().getImageryType() == ImageryType.HTML)
return new HTMLGrabber(Main.map.mapView, this, localOnly);
else if (getInfo().getImageryType() == ImageryType.WMS)
return new WMSGrabber(Main.map.mapView, this, localOnly);
else throw new IllegalStateException("getGrabber() called for non-WMS layer type");
}