Changeset 31855 in osm
- Timestamp:
- 2015-12-25T14:24:42+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/BingAerialTileSource.java
r31790 r31855 90 90 91 91 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=" 93 93 + API_KEY); 94 94 } … … 103 103 XPath xpath = xPathFactory.newXPath(); 104 104 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/"); 105 108 imageUrlTemplate = culturePattern.matcher(imageUrlTemplate).replaceAll(Locale.getDefault().toString()); 106 109 imageryZoomMax = Integer.valueOf(xpath.compile("//ImageryMetadata/ZoomMax/text()").evaluate(document));
Note:
See TracChangeset
for help on using the changeset viewer.