Changeset 24652 in osm for applications/editors


Ignore:
Timestamp:
2010-12-08T13:01:15+01:00 (14 years ago)
Author:
upliner
Message:

Don't load Bing attribution data until getAttributionText(), see #5715/josm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery/src/org/openstreetmap/josm/plugins/imagery/tms/BingAerialTileSource.java

    r24536 r24652  
    2626    public BingAerialTileSource() {
    2727        super("Bing Aerial Maps", "http://ecn.t2.tiles.virtualearth.net/tiles/");
    28 
    29         attributions = loadAttributionText();
    30         System.err.println("Added " + attributions.size() + " attributions.");
    3128    }
    3229
     
    157154    @Override
    158155    public String getAttributionText(int zoom, LatLon topLeft, LatLon botRight) {
     156        if (attributions == null) {
     157            attributions = loadAttributionText();
     158            System.err.println("Added " + attributions.size() + " attributions.");
     159        }
    159160        Bounds windowBounds = new Bounds(topLeft, botRight);
    160161        StringBuilder a = new StringBuilder();
Note: See TracChangeset for help on using the changeset viewer.