|
@ -371,13 +371,11 @@ function get_micropub_source(&$user, $url, $properties) { |
|
|
|
|
|
|
|
|
function static_map($latitude, $longitude, $height=180, $width=700, $zoom=14) { |
|
|
function static_map($latitude, $longitude, $height=180, $width=700, $zoom=14) { |
|
|
$params = [ |
|
|
$params = [ |
|
|
'lat' => $latitude, |
|
|
|
|
|
'lng' => $longitude, |
|
|
|
|
|
'h' => $height, |
|
|
'h' => $height, |
|
|
'w' => $width, |
|
|
'w' => $width, |
|
|
'z' => $zoom, |
|
|
'z' => $zoom, |
|
|
]; |
|
|
]; |
|
|
return '/map-img?'.http_build_query($params); |
|
|
|
|
|
|
|
|
return '/map-img?lat='.$latitude.'&lng='.$longitude.'&'.http_build_query($params); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function relative_time($date) { |
|
|
function relative_time($date) { |
|
|