From: friendica Date: Fri, 10 Feb 2012 03:53:56 +0000 (-0800) Subject: OSM improvements - increase zoom, return quickly if no location to render X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=111f6717a80f3965e67b68d7bc0203367be78669;hp=a7d5bdfc9a4c34cf9a5e735117993c001a8ec979;p=friendica-addons.git OSM improvements - increase zoom, return quickly if no location to render --- diff --git a/openstreetmap.tgz b/openstreetmap.tgz index 85da0748..97962352 100644 Binary files a/openstreetmap.tgz and b/openstreetmap.tgz differ diff --git a/openstreetmap/openstreetmap.php b/openstreetmap/openstreetmap.php index d76414c4..ef5d6bef 100755 --- a/openstreetmap/openstreetmap.php +++ b/openstreetmap/openstreetmap.php @@ -28,6 +28,9 @@ function openstreetmap_uninstall() { function openstreetmap_location($a, &$item) { + if(! (strlen($item['location']) || strlen($item['coord']))) + return; + $location = ''; $coord = ''; @@ -36,7 +39,7 @@ function openstreetmap_location($a, &$item) { if($item['coord']) { $coords = explode(' ', $item['coord']); if(count($coords) > 1) { - $coord = '' . $item['coord'] . '' ; + $coord = '' . $item['coord'] . '' ; } } if(strlen($coord)) {