Pass config parameters to hordemap
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 16 Dec 2009 19:22:28 +0000 (14:22 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 16 Dec 2009 19:22:28 +0000 (14:22 -0500)
kronolith/lib/Kronolith.php

index 6a12db3..28b1fe5 100644 (file)
@@ -114,8 +114,11 @@ class Kronolith
     {
         // Add the apikeys
         if (!empty($params['providers'])) {
-            foreach ($params['providers'] as $layer) {
+            $params['conf'] = array(
+                'URI_IMG_HORDE' => $GLOBALS['registry']->getImageDir('horde') . '/',
+                'useMarkerLayer' => true);
 
+            foreach ($params['providers'] as $layer) {
                 switch ($layer) {
                 case 'Google':
                     $params['apikeys']['google'] = $GLOBALS['conf']['api']['googlemaps'];