mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
fix osm tile copyright attribution
This commit is contained in:
@@ -737,7 +737,7 @@ function showActivatorsMap(call, count, grids) {
|
||||
var maidenhead = new L.maidenheadactivators(grid_four).addTo(map);
|
||||
|
||||
var osmUrl='<?php echo $this->optionslib->get_option('option_map_tile_server');?>';
|
||||
var osmAttrib='Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
|
||||
var osmAttrib='<?php echo $this->optionslib->get_option('option_map_tile_server_copyright');?>';
|
||||
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 12, attribution: osmAttrib});
|
||||
|
||||
map.addLayer(osm);
|
||||
|
||||
@@ -14,7 +14,7 @@ function initmap(ShowGrid='No', MapTag='map', options={}) {
|
||||
// set up the map
|
||||
map = new L.Map(MapTag);
|
||||
// create the tile layer with correct attribution
|
||||
var osmAttrib='Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
|
||||
var osmAttrib = option_map_tile_server_copyright;
|
||||
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 12, attribution: osmAttrib});
|
||||
|
||||
var printer = L.easyPrint({
|
||||
|
||||
@@ -51,7 +51,7 @@ function load_cq_map2(data) {
|
||||
L.tileLayer(
|
||||
osmUrl,
|
||||
{
|
||||
attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
|
||||
attribution: option_map_tile_server_copyright,
|
||||
maxZoom: 18
|
||||
}
|
||||
).addTo(map);
|
||||
|
||||
@@ -76,7 +76,7 @@ function load_dxcc_map2(data, worked, confirmed, notworked) {
|
||||
L.tileLayer(
|
||||
osmUrl,
|
||||
{
|
||||
attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
|
||||
attribution: option_map_tile_server_copyright,
|
||||
maxZoom: 18
|
||||
}
|
||||
).addTo(map);
|
||||
|
||||
@@ -56,7 +56,7 @@ function load_helvetia_map2(data) {
|
||||
L.tileLayer(
|
||||
osmUrl,
|
||||
{
|
||||
attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
|
||||
attribution: option_map_tile_server_copyright,
|
||||
maxZoom: 18
|
||||
}
|
||||
).addTo(map);
|
||||
|
||||
@@ -55,7 +55,7 @@ function load_iota_map2(data, worked, confirmed, notworked) {
|
||||
L.tileLayer(
|
||||
osmUrl,
|
||||
{
|
||||
attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
|
||||
attribution: option_map_tile_server_copyright,
|
||||
maxZoom: 18
|
||||
}
|
||||
).addTo(map);
|
||||
|
||||
@@ -144,7 +144,7 @@ function load_itu_map2(data) {
|
||||
L.tileLayer(
|
||||
osmUrl,
|
||||
{
|
||||
attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
|
||||
attribution: option_map_tile_server_copyright,
|
||||
maxZoom: 18
|
||||
}
|
||||
).addTo(map);
|
||||
|
||||
@@ -47,7 +47,7 @@ function load_jcc_map2(data, worked, confirmed, notworked) {
|
||||
L.tileLayer(
|
||||
osmUrl,
|
||||
{
|
||||
attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
|
||||
attribution: option_map_tile_server_copyright,
|
||||
maxZoom: 18
|
||||
}
|
||||
).addTo(map);
|
||||
|
||||
@@ -73,7 +73,7 @@ function load_rac_map2(data) {
|
||||
L.tileLayer(
|
||||
osmUrl,
|
||||
{
|
||||
attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
|
||||
attribution: option_map_tile_server_copyright,
|
||||
maxZoom: 18
|
||||
}
|
||||
).addTo(map);
|
||||
|
||||
@@ -157,7 +157,7 @@ const mapcoordinates = { "type": "FeatureCollection", "features": [
|
||||
L.tileLayer(
|
||||
osmUrl,
|
||||
{
|
||||
attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
|
||||
attribution: option_map_tile_server_copyright,
|
||||
maxZoom: 18
|
||||
}
|
||||
).addTo(map);
|
||||
|
||||
@@ -164,7 +164,7 @@ const mapcoordinates = { "type": "FeatureCollection", "features": [
|
||||
L.tileLayer(
|
||||
osmUrl,
|
||||
{
|
||||
attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
|
||||
attribution: option_map_tile_server_copyright,
|
||||
maxZoom: 18
|
||||
}
|
||||
).addTo(map);
|
||||
|
||||
Reference in New Issue
Block a user