Changeset 11532 in josm for trunk


Ignore:
Timestamp:
2017-02-03T21:30:20+01:00 (2 years ago)
Author:
stoecker
Message:

see #9210 - remove interim imagery blacklist solution, the api now has a proper system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r11386 r11532  
    234234            }
    235235
    236             /* This is an interim solution for openstreetmap.org not currently
    237              * transmitting their imagery blacklist in the capabilities call.
    238              * remove this as soon as openstreetmap.org adds blacklists.
    239              * If you want to update this list, please ask for update of
    240              * http://trac.openstreetmap.org/ticket/5024
    241              * This list should not be maintained by each OSM editor (see #9210) */
    242             if (this.serverUrl.matches(".*openstreetmap.org/api.*") && capabilities.getImageryBlacklist().isEmpty()) {
    243                 capabilities.put("blacklist", "regex", ".*\\.google\\.com/.*");
    244                 capabilities.put("blacklist", "regex", ".*209\\.85\\.2\\d\\d.*");
    245                 capabilities.put("blacklist", "regex", ".*209\\.85\\.1[3-9]\\d.*");
    246                 capabilities.put("blacklist", "regex", ".*209\\.85\\.12[89].*");
    247             }
    248 
    249236            /* This checks if there are any layers currently displayed that
    250237             * are now on the blacklist, and removes them. This is a rare
Note: See TracChangeset for help on using the changeset viewer.