summaryrefslogtreecommitdiff
path: root/lib/helpers.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/helpers.php')
-rw-r--r--lib/helpers.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/helpers.php b/lib/helpers.php
index ec23afa..2102ee1 100644
--- a/lib/helpers.php
+++ b/lib/helpers.php
@@ -370,7 +370,12 @@ function get_micropub_source(&$user, $url, $properties) {
}
function static_map($latitude, $longitude, $height=180, $width=700, $zoom=14) {
- return 'https://atlas.p3k.io/map/img?marker[]=lat:' . $latitude . ';lng:' . $longitude . ';icon:small-blue-cutout&basemap=gray&width=' . $width . '&height=' . $height . '&zoom=' . $zoom;
+ $params = [
+ 'h' => $height,
+ 'w' => $width,
+ 'z' => $zoom,
+ ];
+ return '/map-img?lat='.$latitude.'&lng='.$longitude.'&'.http_build_query($params);
}
function relative_time($date) {