Changeset 29669 in osm


Ignore:
Timestamp:
2013-06-19T00:34:51+02:00 (12 years ago)
Author:
pieren
Message:

#7009 remove layer if WMS interface setup fails to find commune/departement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java

    r29101 r29669  
    5454                wmsLayer.grab(bounds);
    5555            }
     56            else if(wmsLayer.getImages().size()==0)
     57              // failed to contact WMS of find this commune. Remove layer if empty.
     58              Main.main.removeLayer(wmsLayer);
    5659        } catch (DuplicateLayerException e) {
    5760            // we tried to grab onto a duplicated layer (removed)
Note: See TracChangeset for help on using the changeset viewer.