From 89ec23f572c7db949056a2582e216bbbbfa7b150 Mon Sep 17 00:00:00 2001
From: James Turner <zakalawe@mac.com>
Date: Mon, 25 Jul 2022 09:51:38 +0100
Subject: [PATCH] Add OpenFlightMaps layer
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Code changes are from:
 https://github.com/Thilo277/Flightgear-openflightmaps/blob/main/FGDATA_Phi_topics_Map.js.diff

Patch by Thilo Schürman
---
 Phi/topics/Map.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Phi/topics/Map.js b/Phi/topics/Map.js
index e9f66153d..cc71c0067 100644
--- a/Phi/topics/Map.js
+++ b/Phi/topics/Map.js
@@ -137,6 +137,12 @@ define([
             "Navigation Data": L.navdbLayer(),
             "Other Traffic": L.aiLayer(),
 
+            "OpenFlightMaps":  new L.TileLayer("https://nwy-tiles-api.prod.newaydata.com/tiles/{z}/{x}/{y}.png?path=2207/aero/latest", {
+                maxZoom: 13,
+                minZoom: 7,
+                attribution: '<a target="_blank" href="http://openflightmaps.org">&copy; open flightmaps association</a>'
+            }),
+
             "OpenAIP":  new L.TileLayer("http://{s}.tile.maps.openaip.net/geowebcache/service/tms/1.0.0/openaip_basemap@EPSG%3A900913@png/{z}/{x}/{y}.png", {
                 maxZoom: 14,
                 minZoom: 4,