Beispiel #1
0
 function handler_map_url($page)
 {
     pl_content_headers('text/plain');
     if (Post::has('text')) {
         $address = new Address(array('text' => Post::t('text')));
         $gmapsGeocoder = new GMapsGeocoder();
         $gmapsGeocoder->getGeocodedAddress($address);
         echo GMapsGeocoder::buildStaticMapURL($address->latitude, $address->longitude, Post::t('color'));
     }
     exit;
 }
function smarty_insert_getStaticMapURL(array $data)
{
    return GMapsGeocoder::buildStaticMapURL($data['latitude'], $data['longitude'], $data['color'], '&');
}