From 86fb4a5ce73aeafe718dd7d2ad77eaa6ae7da99d Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 4 Jun 2022 13:26:45 -0700 Subject: fix map --- lib/helpers.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/helpers.php b/lib/helpers.php index 5408906..2102ee1 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -371,13 +371,11 @@ function get_micropub_source(&$user, $url, $properties) { function static_map($latitude, $longitude, $height=180, $width=700, $zoom=14) { $params = [ - 'lat' => $latitude, - 'lng' => $longitude, 'h' => $height, 'w' => $width, 'z' => $zoom, ]; - return '/map-img?'.http_build_query($params); + return '/map-img?lat='.$latitude.'&lng='.$longitude.'&'.http_build_query($params); } function relative_time($date) { -- cgit v1.2.3