Skip to content

Commit

Permalink
Open AIP Layer
Browse files Browse the repository at this point in the history
  • Loading branch information
alkissack committed Apr 24, 2024
1 parent 7bb3a44 commit 6fd7b28
Showing 1 changed file with 38 additions and 16 deletions.
54 changes: 38 additions & 16 deletions public_html/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -809,22 +809,44 @@ function initialize_map() {
});
ukairspaceLayer.setVisible(false);

layers.push(
new ol.layer.Group({
title: "UK",
layers: [
ukairspaceLayer,
navPointsLayer,
airwaysMRCLayer,
vordmeLayer,
airwaysLayer,
ukCTALayer,
atzLayer,
airportLayer,
],
})
);
} // End
var openaip = new ol.layer.Tile({
name: 'openaip',
title: 'openAIP',
type: 'overlay',
source: new ol.source.OSM({
"url" : "https://map.adsbexchange.com/mapproxy/tiles/1.0.0/openaip/ul_grid/{z}/{x}/{y}.png",
"attributions" : "openAIP.net",
attributionsCollapsible: false,
maxZoom: 12,
//transition: tileTransition,
opaque: false,
opacity: 0.5,
format: new ol.format.GeoJSON({
defaultDataProjection: "EPSG:4326",
projection: "EPSG:3857",
}),
}),
});
openaip.setVisible(false);

layers.push(
new ol.layer.Group({
title: "UK",
layers: [
openaip,
ukairspaceLayer,
navPointsLayer,
airwaysMRCLayer,
vordmeLayer,
airwaysLayer,
ukCTALayer,
atzLayer,
airportLayer,
],
})
);
} // End


// --------------------------------------------------------------
// AKISSACK - ADD LAYERS ---------------------- ref: AK4A ends
Expand Down

0 comments on commit 6fd7b28

Please sign in to comment.