Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/osmdroid/osmdroid
Browse files Browse the repository at this point in the history
  • Loading branch information
spyhunter99 committed Mar 16, 2019
2 parents a80ee86 + 74db8f3 commit cbaabd8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 11 deletions.
1 change: 1 addition & 0 deletions OpenStreetMapViewer/src/main/AndroidManifest.xml
Expand Up @@ -41,6 +41,7 @@
android:largeHeap="true"
android:icon="@drawable/icon"
android:theme="@style/Theme.AppCompat.NoActionBar"
android:networkSecurityConfig="@xml/network_security_config"
android:label="@string/app_name">

<!-- Bing maps tile users:
Expand Down
15 changes: 15 additions & 0 deletions OpenStreetMapViewer/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">dev.virtualearth.net</domain>
</domain-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">tiles.wmflabs.org</domain>
</domain-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">tile.cloudmade.com</domain>
</domain-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">openptmap.org</domain>
</domain-config>
</network-security-config>
Expand Up @@ -138,15 +138,15 @@ public static int removeTileSources(final String aRegex) {

public static final OnlineTileSourceBase FIETS_OVERLAY_NL = new XYTileSource("Fiets",
3, 18, 256, ".png",
new String[] { "http://overlay.openstreetmap.nl/openfietskaart-overlay/" },"© OpenStreetMap contributors");
new String[] { "https://overlay.openstreetmap.nl/openfietskaart-overlay/" },"© OpenStreetMap contributors");

public static final OnlineTileSourceBase BASE_OVERLAY_NL = new XYTileSource("BaseNL",
0, 18, 256, ".png",
new String[] { "http://overlay.openstreetmap.nl/basemap/" });
new String[] { "https://overlay.openstreetmap.nl/basemap/" });

public static final OnlineTileSourceBase ROADS_OVERLAY_NL = new XYTileSource("RoadsNL",
0, 18, 256, ".png",
new String[] { "http://overlay.openstreetmap.nl/roads/" },"© OpenStreetMap contributors");
new String[] { "https://overlay.openstreetmap.nl/roads/" },"© OpenStreetMap contributors");

public static final OnlineTileSourceBase HIKEBIKEMAP = new XYTileSource("HikeBikeMap",
0, 18, 256, ".png",
Expand All @@ -159,7 +159,7 @@ public static int removeTileSources(final String aRegex) {
* @sunce 5.6.2
*/
public static final OnlineTileSourceBase OPEN_SEAMAP = new XYTileSource("OpenSeaMap",
3,18,256,".png", new String[] { "http://tiles.openseamap.org/seamark/"}, "OpenSeaMap");
3,18,256,".png", new String[] { "https://tiles.openseamap.org/seamark/"}, "OpenSeaMap");


public static final OnlineTileSourceBase USGS_TOPO = new OnlineTileSourceBase("USGS National Map Topo", 0, 15, 256, "",
Expand All @@ -183,29 +183,31 @@ public String getTileURLString(final long pMapTileIndex) {
* @since 5.6.2
*/
public static final OnlineTileSourceBase ChartbundleWAC = new XYTileSource("ChartbundleWAC", 4, 12, 256, ".png?type=google",
new String[]{"http://wms.chartbundle.com/tms/v1.0/wac/"}, "chartbundle.com");
new String[]{"https://wms.chartbundle.com/tms/v1.0/wac/"}, "chartbundle.com");

/**
* Chart Bundle US Aeronautical Charts Enroute High
* @since 5.6.2
*/
public static final OnlineTileSourceBase ChartbundleENRH = new XYTileSource("ChartbundleENRH", 4, 12, 256, ".png?type=google",
new String[]{"http://wms.chartbundle.com/tms/v1.0/enrh/", "chartbundle.com"});
new String[]{"https://wms.chartbundle.com/tms/v1.0/enrh/", "chartbundle.com"});
/**
* Chart Bundle US Aeronautical Charts Enroute Low
* @since 5.6.2
*/
public static final OnlineTileSourceBase ChartbundleENRL = new XYTileSource("ChartbundleENRL", 4, 12, 256, ".png?type=google",
new String[]{"http://wms.chartbundle.com/tms/v1.0/enrl/", "chartbundle.com"});
new String[]{"https://wms.chartbundle.com/tms/v1.0/enrl/", "chartbundle.com"});

/**
* Open Topo Maps https://opentopomap.org
* @since 5.6.2
*/
public static final OnlineTileSourceBase OpenTopo= new XYTileSource("OpenTopoMap", 0, 19, 256, ".png",
new String[]{"https://opentopomap.org/"}, "Kartendaten: © OpenStreetMap-Mitwirkende, SRTM | Kartendarstellung: © OpenTopoMap (CC-BY-SA)");


public static final OnlineTileSourceBase OpenTopo= new XYTileSource("OpenTopoMap", 0, 17, 256, ".png",
new String[]{
"https://a.tile.opentopomap.org/",
"https://b.tile.opentopomap.org/",
"https://c.tile.opentopomap.org/"},
"Kartendaten: © OpenStreetMap-Mitwirkende, SRTM | Kartendarstellung: © OpenTopoMap (CC-BY-SA)");

private static List<ITileSource> mTileSources;
static {
Expand Down

0 comments on commit cbaabd8

Please sign in to comment.