add openstreetmap DE style

not for adsbexchange due to tile server usage policy (only
        non-commercial websites may use the tiles)
This commit is contained in:
Matthias Wirth
2022-03-15 13:44:06 +01:00
parent 793b41ee6b
commit 0ffc4bd33d

View File

@@ -49,8 +49,6 @@ function createBaseLayers() {
world.push(new ol.layer.Tile({
source: new ol.source.OSM({
"url" : "https://map.adsbexchange.com/mapproxy/tiles/1.0.0/osm/osm_grid/{z}/{x}/{y}.png",
//'hosted by <a href="https://adsbexchange.com/">adsbexchange.com</a> '
"attributions" : '© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.',
attributionsCollapsible: false,
maxZoom: 16,
}),
@@ -62,12 +60,26 @@ function createBaseLayers() {
world.push(new ol.layer.Tile({
source: new ol.source.OSM({
maxZoom: 17,
attributionsCollapsible: false,
}),
name: 'osm',
title: 'OpenStreetMap',
type: 'base',
}));
if (!adsbexchange) {
world.push(new ol.layer.Tile({
source: new ol.source.OSM({
"url" : "https://{a-d}.tile.openstreetmap.de/{z}/{x}/{y}.png",
attributionsCollapsible: false,
maxZoom: 17,
}),
name: 'osm_adsbx',
title: 'OpenStreetMap DE',
type: 'base',
}));
}
world.push(new ol.layer.Tile({
source: new ol.source.XYZ({
url: "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",