Ignore:
Timestamp:
2018-11-02T00:07:28+01:00 (7 years ago)
Author:
wiktorn
Message:

GetTileUrl performance improvements for WMS

See: #16769

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMSEndpointTileSource.java

    r14214 r14399  
    6060    @Override
    6161    public String getTileUrl(int zoom, int tilex, int tiley) {
    62         String bbox = getBbox(zoom, tilex, tiley, !wmsi.belowWMS130() && getTileProjection().switchXY());
    63 
    6462        // Using StringBuffer and generic PATTERN_PARAM matcher gives 2x performance improvement over replaceAll
    6563        StringBuffer url = new StringBuffer(urlPattern.length());
     
    7270                break;
    7371            case "bbox":
    74                 replacement = bbox;
     72                replacement = getBbox(zoom, tilex, tiley, !wmsi.belowWMS130() && getTileProjection().switchXY());
    7573                break;
    7674            case "width":
Note: See TracChangeset for help on using the changeset viewer.