Ignore:
Timestamp:
2015-12-25T14:24:42+01:00 (9 years ago)
Author:
simon04
Message:

Use HTTPS for Bing Aerial

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/BingAerialTileSource.java

    r31790 r31855  
    9090
    9191    protected URL getAttributionUrl() throws MalformedURLException {
    92         return new URL("http://dev.virtualearth.net/REST/v1/Imagery/Metadata/Aerial?include=ImageryProviders&output=xml&key="
     92        return new URL("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/Aerial?include=ImageryProviders&output=xml&key="
    9393                + API_KEY);
    9494    }
     
    103103            XPath xpath = xPathFactory.newXPath();
    104104            imageUrlTemplate = xpath.compile("//ImageryMetadata/ImageUrl/text()").evaluate(document);
     105            imageUrlTemplate = imageUrlTemplate.replace(
     106                    "http://ecn.{subdomain}.tiles.virtualearth.net/",
     107                    "https://ecn.{subdomain}.tiles.virtualearth.net/");
    105108            imageUrlTemplate = culturePattern.matcher(imageUrlTemplate).replaceAll(Locale.getDefault().toString());
    106109            imageryZoomMax = Integer.valueOf(xpath.compile("//ImageryMetadata/ZoomMax/text()").evaluate(document));
Note: See TracChangeset for help on using the changeset viewer.