// 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,
}
});
-HordeMap.Geocoder.Horde = Class.create({});
\ No newline at end of file
+HordeMap.Geocoder.Horde = Class.create({});
* '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)
{
$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);