function getlocations_get_markerclusterer_styles in Get Locations 7
Same name and namespace in other branches
- 6.2 getlocations.markercluster.inc \getlocations_get_markerclusterer_styles()
- 6 getlocations.markercluster.inc \getlocations_get_markerclusterer_styles()
- 7.2 getlocations.markercluster.inc \getlocations_get_markerclusterer_styles()
To override these copy this file to getlocations.markercluster_override.inc and make your changes there.
1 call to getlocations_get_markerclusterer_styles()
- getlocations_setup_js in ./
getlocations.module - Function to setup the map scripts
File
- ./
getlocations.markercluster.inc, line 18 - getlocations.markercluster.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_get_markerclusterer_styles() {
$getlocations_defaults = getlocations_defaults();
if (!empty($getlocations_defaults['markerclusterer_imgpath'])) {
$jspath = $getlocations_defaults['markerclusterer_imgpath'];
}
else {
$jspath = base_path() . GETLOCATIONS_PATH . '/js/images';
}
$markerclusterer_styles = array(
array(
(object) array(
'url' => $jspath . '/people35.png',
'height' => 35,
'width' => 35,
'anchor' => array(
16,
0,
),
'textColor' => '#ff00ff',
'textSize' => 10,
),
(object) array(
'url' => $jspath . '/people45.png',
'height' => 45,
'width' => 45,
'anchor' => array(
24,
0,
),
'textColor' => '#ff0000',
'textSize' => 11,
),
(object) array(
'url' => $jspath . '/people55.png',
'height' => 55,
'width' => 55,
'anchor' => array(
32,
0,
),
'textColor' => '#ffffff',
'textSize' => 12,
),
),
array(
(object) array(
'url' => $jspath . '/conv30.png',
'height' => 27,
'width' => 30,
'anchor' => array(
3,
0,
),
'textColor' => '#ff00ff',
'textSize' => 10,
),
(object) array(
'url' => $jspath . '/conv40.png',
'height' => 36,
'width' => 40,
'anchor' => array(
6,
0,
),
'textColor' => '#ff0000',
'textSize' => 11,
),
(object) array(
'url' => $jspath . '/conv50.png',
'height' => 45,
'width' => 50,
'anchor' => array(
8,
0,
),
'textColor' => '#ffffff',
'textSize' => 12,
),
),
array(
(object) array(
'url' => $jspath . '/heart30.png',
'height' => 26,
'width' => 30,
'anchor' => array(
4,
0,
),
'textColor' => '#ff00ff',
'textSize' => 10,
),
(object) array(
'url' => $jspath . '/heart40.png',
'height' => 35,
'width' => 40,
'anchor' => array(
8,
0,
),
'textColor' => '#ff0000',
'textSize' => 11,
),
(object) array(
'url' => $jspath . '/heart50.png',
'height' => 44,
'width' => 50,
'anchor' => array(
12,
0,
),
'textColor' => '#ffffff',
'textSize' => 12,
),
),
);
return $markerclusterer_styles;
}