Skip to content

Commit ec06a63

Browse files
committed
support PMTiles protocol
Signed-off-by: Benstone Zhang <benstonezhang@gmail.com>
1 parent 43b47a2 commit ec06a63

File tree

10 files changed

+306
-112
lines changed

10 files changed

+306
-112
lines changed

β€Žcss/adminSettings.cssβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
#graphhopperAPIKEY,
66
#mapboxAPIKEY,
77
#maplibreStreetStyleURL,
8-
#maplibreStreetStyleAuth
8+
#maplibreStreetStyleAuth,
9+
#maplibreStreetStylePmtiles
910
{
1011
width: 400px;
1112
}

β€Žlib/Controller/PageController.phpβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ private function addCsp($response): void {
131131
'osrmFootURL',
132132
'graphhopperURL',
133133
'maplibreStreetStyleURL',
134-
'maplibreStreetStyleAuth'
134+
'maplibreStreetStyleAuth',
135+
'maplibreStreetStylePmtiles'
135136
];
136137
foreach ($urlKeys as $key) {
137138
$url = $this->config->getAppValue('maps', $key);

β€Žlib/Controller/PublicUtilsController.phpβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ public function getOptionsValues(): DataResponse {
195195
'mapboxAPIKEY',
196196
'maplibreStreetStyleURL',
197197
'maplibreStreetStyleAuth',
198+
'maplibreStreetStylePmtiles',
198199
'graphhopperURL'
199200
];
200201
foreach ($settingsKeys as $k) {

β€Žlib/Controller/UtilsController.phpβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public function getOptionsValues($myMapId = null): DataResponse {
134134
'mapboxAPIKEY',
135135
'maplibreStreetStyleURL',
136136
'maplibreStreetStyleAuth',
137+
'maplibreStreetStylePmtiles',
137138
'graphhopperURL'
138139
];
139140
foreach ($settingsKeys as $k) {
@@ -159,6 +160,7 @@ public function setRoutingSettings($values): DataResponse {
159160
'mapboxAPIKEY',
160161
'maplibreStreetStyleURL',
161162
'maplibreStreetStyleAuth',
163+
'maplibreStreetStylePmtiles',
162164
'graphhopperURL'
163165
];
164166
foreach ($values as $k => $v) {

β€Žlib/Settings/AdminSettings.phpβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function getForm() {
2828
'mapboxAPIKEY',
2929
'maplibreStreetStyleURL',
3030
'maplibreStreetStyleAuth',
31+
'maplibreStreetStylePmtiles',
3132
'graphhopperURL'
3233
];
3334
$parameters = [];

0 commit comments

Comments
Β (0)