Difference between revisions of "Technical Documentation"

From SmartHubs
Jump to: navigation, search
(Created page with "=== Adding ÖPNVKarte layer === in <code>extensions/Maps/resources/lib/leaflet-providers/leaflet-providers.js</code> add: <pre> oepnvkarte: { url: 'https://tileserver.mem...")
 
 
Line 1: Line 1:
=== Adding ÖPNVKarte layer ===
+
=== Adding ÖPNVKarte layer for Maps ===
  
 
in <code>extensions/Maps/resources/lib/leaflet-providers/leaflet-providers.js</code> add:
 
in <code>extensions/Maps/resources/lib/leaflet-providers/leaflet-providers.js</code> add:

Latest revision as of 14:54, 21 September 2021

Adding ÖPNVKarte layer for Maps

in extensions/Maps/resources/lib/leaflet-providers/leaflet-providers.js add:

oepnvkarte: { 
  url: 'https://tileserver.memomaps.de/tilegen//{z}/{x}/{y}.png', 
  options: { 
    maxZoom: 16, 
    attribution: 'Map: <a href="https://memomaps.de">memomaps.de</a> (<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>), Map data: {attribution.OpenStreetMap}' 
  } 
}