Changeset 33299 in osm for applications/editors


Ignore:
Timestamp:
2017-05-10T09:19:11+02:00 (8 years ago)
Author:
zverik
Message:

Remove access_token parameters from TMS (for the DG imagery)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryIdGenerator.java

    r32528 r33299  
    6464            if (isWMS && removeWMSParams.contains(kv[0]))
    6565                continue;
    66             // TMS: skip parameters with variable values
    67             if (kv.length > 1 && kv[1].indexOf('{') >= 0 && kv[1].indexOf('}') > 0)
     66            // TMS: skip parameters with variable values and Mapbox's access token
     67            if ((kv.length > 1 && kv[1].indexOf('{') >= 0 && kv[1].indexOf('}') > 0) || kv[0].equals("access_token"))
    6868                continue;
    6969            qparams.put(kv[0].toLowerCase(), kv.length > 1 ? kv[1] : null);
Note: See TracChangeset for help on using the changeset viewer.