+
+ 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();
+ }