From 111f6717a80f3965e67b68d7bc0203367be78669 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 9 Feb 2012 19:53:56 -0800 Subject: [PATCH] OSM improvements - increase zoom, return quickly if no location to render --- openstreetmap.tgz | Bin 698 -> 723 bytes openstreetmap/openstreetmap.php | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/openstreetmap.tgz b/openstreetmap.tgz index 85da07487d2eb6a31c2154b96b0b9a70756d3b63..9796235269b1ce1a80b44a2d707c21730d57273b 100644 GIT binary patch literal 723 zcmV;^0xbO>iwFS6lr&EO1MQVdZ`wc*$GPH9F}0%Djw1X>cnC02rC!q>s`e69(bg=+ zitTmR>pa@zyLZ+Ygp(k8NK#dupFm=FXXo*sSs@CZmr8Q3GFG^qSHVMu!+s~|pALiI zwBz*$!Qj-d_ZvFCKlJ;)ANbx$$MaA0G4x+2oi4*B*vcp2ZLa^)&BtdKMeZVfA2-2@8Li1|MU#IY`8~91{}dhmhmxs z!Xbdq^%TH4EA+t!UPdx0R3h>*d?`7!2Svyj7DB>2DT|cdC3y^~h?q7nd;0!YF3b9^ z-}ChPeWjK{j^RAH;uxb*9;QpBim~f%deMtS<`z;cl9am{8qf4?{Nl$o3}aE{k&e>N z=Q6?HEKO|(ei=qr@;E6KmzPT+u53&4e2$BCg4QuuY(5vcyXPrr!*-aB3ul61QW3{o z+GZ1+&)Z3vX!Ni<N2eJTr`p6W8(GDU}<;rfZI4}c${bDpe|6GZb zsmEHZGPv+oA{?e7-(lf57C(i^LVwhfYb%kJR=UauLw~T=_59RU&Z^k&HC=BULU2QniL)YbL$=m+4yB&_&ezx3T z;!SBwm8Do&2pfkJV?Flz#r^HS1%e<5f*=TjAP9mW2!bF8f*=TjAPC|g<2R`x`gZ^* F000L3X%GMa literal 698 zcmV;r0!95FiwFR7d^Ar01MQSuZ<{a_hPf@j;s{j*s)~;^gencGChfM{#kAd2Q{{m} zPysVz+HO_<`)nXlXos?kw!7$gM5GuWzvn&2Hmss$EjXp3AeF1V3Z5hk18ova!^vc- zdBJQloBHkh9?kbdKk&k7IF1=kYLGU_uhBUPx96&2boM!wsD@Wq0G?@8kXJ>EW z=?!6n{U3~+YF)iZjy?N73H;fU{SPOhuYva>+4u0y_kVFAcUgCjk99bPPo$u8_$&_r zd}&VsT#`yne57^Evr1&FoWs|e!tkIlp2CW8NV2-h$*-(TA!jjB;kBdIf1|u^*ZPj9 z#vdB7W_%8p*$tIB`p&~*EkreU-R)jDF)Q4PvsIQ;w~)b0wOan<ueX-v(fcY_iA<1N@g!6> zMhV2MDTUQ9v0({*C$iJE{mtk#|Gg7A5l?&3Ik@t=CLHCg9EtGzh~JDAk?#%KwPU2~ zm8$YlSC6b!nvi0>klod(dbnw_-PXN59*(O02M2e#s4G%JoRhkajJl9lMbLX;EUh+m z*C?6NUbrf7sSe!%&1*W;Q*t9hL!BKNX}m9OEs9)L7Qt5VTzy|e!^`%f{O_+hf*=Tj gAP9mW2!bF8f*=TjAP9mW2=ZR}1F4UZC;%t`0FzW--2eap 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)) { -- 2.39.5