Skip to content

Commit 17566c1

Browse files
committed
feat: refactor attribution for layers
1 parent d7b7512 commit 17566c1

File tree

1 file changed

+6
-11
lines changed
  • vis/js/templates/Geomap/LayersSwitcher

1 file changed

+6
-11
lines changed

vis/js/templates/Geomap/LayersSwitcher/config.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,19 @@ import { Config } from "./types";
22

33
export const CONFIG: Config = {
44
POSITION: "topright",
5-
CHECKED_LAYER_NAME: "OpenStreetMap",
5+
CHECKED_LAYER_NAME: "Standard",
66
LAYERS: [
77
{
8-
name: "OpenStreetMap",
9-
attribution: "© OpenStreetMap contributors",
8+
name: "Standard",
9+
attribution:
10+
'&copy; <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener noreferrer">OpenStreetMap contributors</a> ♥ <a href="https://wiki.osmfoundation.org/wiki/Terms_of_Use" target="_blank" rel="noopener noreferrer">Make a Donation</a>. <a href="https://www.openstreetmap.org/terms" target="_blank" rel="noopener noreferrer">Website and API terms</a>',
1011
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
1112
},
1213
{
13-
name: "OpenStreetMap.HOT",
14+
name: "Humanitarian",
1415
attribution:
15-
"&copy; OpenStreetMap contributors, Tiles style by Humanitarian OpenStreetMap Team hosted by OpenStreetMap France",
16+
'&copy; <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener noreferrer">OpenStreetMap contributors</a>. Tiles style by <a href="https://www.hotosm.org/" target="_blank" rel="noopener noreferrer">Humanitarian OpenStreetMap Team</a> hosted by <a href="https://openstreetmap.fr/" target="_blank" rel="noopener noreferrer">OpenStreetMap France</a>. <a href="https://www.openstreetmap.org/terms" target="_blank" rel="noopener noreferrer">Website and API terms</a>',
1617
url: "https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",
1718
},
18-
{
19-
name: "OpenTopoMap",
20-
attribution:
21-
"Map data: &copy; OpenStreetMap contributors, SRTM | Map style: &copy; OpenTopoMap (CC-BY-SA)",
22-
url: "https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",
23-
},
2419
],
2520
};

0 commit comments

Comments
 (0)