fix osm tile copyright attribution

This commit is contained in:
Karuru
2024-08-11 23:28:04 +08:00
parent 5fd3924f2d
commit 63aa7e1a85
11 changed files with 11 additions and 11 deletions

View File

@@ -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);

View File

@@ -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({

View File

@@ -51,7 +51,7 @@ function load_cq_map2(data) {
L.tileLayer(
osmUrl,
{
attribution: '&copy; <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);

View File

@@ -76,7 +76,7 @@ function load_dxcc_map2(data, worked, confirmed, notworked) {
L.tileLayer(
osmUrl,
{
attribution: '&copy; <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);

View File

@@ -56,7 +56,7 @@ function load_helvetia_map2(data) {
L.tileLayer(
osmUrl,
{
attribution: '&copy; <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);

View File

@@ -55,7 +55,7 @@ function load_iota_map2(data, worked, confirmed, notworked) {
L.tileLayer(
osmUrl,
{
attribution: '&copy; <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);

View File

@@ -144,7 +144,7 @@ function load_itu_map2(data) {
L.tileLayer(
osmUrl,
{
attribution: '&copy; <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);

View File

@@ -47,7 +47,7 @@ function load_jcc_map2(data, worked, confirmed, notworked) {
L.tileLayer(
osmUrl,
{
attribution: '&copy; <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);

View File

@@ -73,7 +73,7 @@ function load_rac_map2(data) {
L.tileLayer(
osmUrl,
{
attribution: '&copy; <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);

View File

@@ -157,7 +157,7 @@ const mapcoordinates = { "type": "FeatureCollection", "features": [
L.tileLayer(
osmUrl,
{
attribution: '&copy; <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);

View File

@@ -164,7 +164,7 @@ const mapcoordinates = { "type": "FeatureCollection", "features": [
L.tileLayer(
osmUrl,
{
attribution: '&copy; <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);