-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlayers.php.inc
106 lines (102 loc) · 3.12 KB
/
layers.php.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
function getLayers() {
$Layers = Array(
"Mapnik" => Array(
"tiles"=>"http://tile.openstreetmap.org/",
"description"=>"Roadmap rendering from OpenStreetMap.",
"update"=>"Weekly",
"license"=>"CC-BY-SA 2.0",
"source"=>"OpenStreetMap",
"hosted"=>"OpenStreetMap foundation",
"format"=>"png",
"slippy"=>"http://openstreetmap.org/"
),
"OpenCycleMap" => Array(
"tiles" => "http://tile.opencyclemap.org/cycle",
"description"=>"A bicycle-themed map.",
"update"=>"",
"license"=>"CC-BY-SA 2.0",
"source"=>"OpenStreetMap",
"hosted"=>"thunderflames.org",
"format"=>"png",
"slippy"=>"http://www.opencyclemap.org/"
),
"Transport" => Array(
"tiles" => "http://tile2.opencyclemap.org/transport",
"description"=>"Public transport information.",
"update"=>"",
"license"=>"CC-BY-SA 2.0",
"source"=>"OpenStreetMap",
"hosted"=>"thunderforest.com",
"format"=>"png",
"slippy"=>"http://www.opencyclemap.org/"
),
"Outdoors" => Array(
"tiles" => "http://tile.opencyclemap.org/outdoors",
"description"=>"Aimed at the outdoors enthusiasts.",
"update"=>"",
"license"=>"CC-BY-SA 2.0",
"source"=>"OpenStreetMap",
"hosted"=>"thunderforest.com",
"format"=>"png",
"slippy"=>"http://www.opencyclemap.org/"
),
"Landscape" => Array(
"tiles" => "http://tile3.opencyclemap.org/landscape",
"description"=>"The world is full of interesting features beyond roads and houses.",
"update"=>"",
"license"=>"CC-BY-SA 2.0",
"source"=>"OpenStreetMap",
"hosted"=>"thunderforest.com",
"format"=>"png",
"slippy"=>"http://www.opencyclemap.org/"
),
"MapQuest" => Array(
"tiles" => "http://otile1.mqcdn.com/tiles/1.0.0/osm",
"description"=>"Remember to cite MapQuest when citing the image source.",
"update"=>"",
"license"=>"CC-BY-SA 2.0",
"source"=>"OpenStreetMap",
"hosted"=>"MapQuest",
"format"=>"jpeg",
"slippy"=>"http://open.mapquest.co.uk/"
),
"Watercolor" => Array(
"tiles" => "http://c.tile.stamen.com/watercolor",
"description"=>"A watercolor map.",
"update"=>"",
"license"=>"CC-BY 3.0",
"source"=>"Stamen Design",
"hosted"=>"Stamen Design",
"format"=>"jpg",
"slippy"=>"http://maps.stamen.com"
),
"Toner" => Array(
"tiles" => "http://a.tile.stamen.com/toner",
"description"=>"A black and white toner map.",
"update"=>"",
"license"=>"CC-BY 3.0",
"source"=>"Stamen Design",
"hosted"=>"Stamen Design",
"format"=>"jpg",
"slippy"=>"http://maps.stamen.com"
),
);
# Optionally include Cloudmade tiles.
# This requires an API key and probably some sort of usage agreement.
if(1) {
foreach(array(1, 2, 5, 998, 999) as $CloudmadeStyleNum) {
$Layers[sprintf("Cloudmade %d", $CloudmadeStyleNum)] = Array(
"tiles" => sprintf("http://tile.cloudmade.com/8460df1eb000505e92f1e907e4b426e6/%d/256", $CloudmadeStyleNum),
"description"=>sprintf("Style %d on Cloudmade's style-editor", $CloudmadeStyleNum),
"update"=>"",
"license"=>"CC-BY-SA 2.0",
"source"=>"CloudMade",
"format"=>"png",
"hosted" =>"cloudmade",
"slippy"=>"http://maps.cloudmade.com/"
);
}
}
return($Layers);
}