Provide images, not image directories (Bug #9098).
authorJan Schneider <jan@horde.org>
Wed, 16 Jun 2010 10:54:48 +0000 (12:54 +0200)
committerJan Schneider <jan@horde.org>
Wed, 16 Jun 2010 11:17:14 +0000 (13:17 +0200)
horde/js/hordemap/horde.js
horde/js/hordemap/map.js
kronolith/lib/Kronolith.php

index 940713a..42f2854 100644 (file)
@@ -70,8 +70,8 @@ HordeMap.Map.Horde = Class.create({
         // Create the vector layer for markers if requested.
         if (HordeMap.conf.useMarkerLayer) {
             styleMap = new OpenLayers.StyleMap({
-                externalGraphic: HordeMap.conf['URI_IMG_HORDE'] + 'map/marker.png',
-                backgroundGraphic: HordeMap.conf['URI_IMG_HORDE'] + 'map/marker-shadow.png',
+                externalGraphic: HordeMap.conf.markerImage,
+                backgroundGraphic: HordeMap.conf.markerBackground,
                 backgroundXOffset: 0,
                 backgroundYOffset: -7,
                 graphicZIndex: 11,
@@ -226,4 +226,4 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
     }
 });
 
-HordeMap.Geocoder.Horde = Class.create({});
\ No newline at end of file
+HordeMap.Geocoder.Horde = Class.create({});
index 503c544..a51169a 100644 (file)
@@ -34,7 +34,8 @@ HordeMap = {
      *          'useMarkerLayer': whether or not to use the 'built-in' marker
      *                            layer (only applies to the Horde driver).
      *
-     *          'URI_IMG_HORDE':  Path to horde's image directory
+     *          'markerImage':  Path to a marker icon.
+     *          'markerBackground':  Path to a marker icon background.
      */
     initialize: function(opts)
     {
index aa5af55..1952e4d 100644 (file)
@@ -120,7 +120,8 @@ class Kronolith
                 $language = 'en-US';
             }
             $params['conf'] = array(
-                'URI_IMG_HORDE' => (string)Horde_Themes::img(null, 'horde') . '/',
+                'markerImage' => (string)Horde_Themes::img('map/marker.png', 'horde'),
+                'markerBackground' => (string)Horde_Themes::img('map/marker-shadow.png', 'horde'),
                 'useMarkerLayer' => true,
                 'language' => $language);