Changeset 19386 in josm


Ignore:
Timestamp:
2025-04-22T22:20:19+02:00 (10 days ago)
Author:
stoecker
Message:

fix #24250 - insert more than one manually added imagery entry to slippy map chooser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java

    r18871 r19386  
    153153            provider -> provider.getTileSources().stream()
    154154        ).collect(Collectors.toMap(
    155             TileSource::getId,
     155            ts -> getTileSourceId(ts),
    156156            ts -> ts,
    157157            (oldTs, newTs) -> oldTs,
     
    160160    }
    161161
     162    /**
     163     * In case the tile source has no ID, use the name
     164     */
     165    private static String getTileSourceId(TileSource ts) {
     166        String id = ts.getId();
     167        if (id == null)
     168            id = ts.getName();
     169        return id;
     170    }
     171   
    162172    /**
    163173     * Get the distance in meter that correspond to 100 px on screen.
Note: See TracChangeset for help on using the changeset viewer.