= __('Map of this Category\'s Locations') ?> |
true, // automatically encompass markers.
'clustering' => $clustering,
];
// provide the element with all the info it needs to set up the map.
$element_options = [
'map_options' => $map_options,
'map_colors' => 'avmaps/js/sg2_map_colors.js',
'the_map' => $this->GoogleMap,
// we want to include the category ID when making ajax calls.
'ajax_options' => '{ category: "' . $category->id . '"}',
'default_options' => '{
iconColor: "' . $this->MapDisplay->defaultIconColor() . '",
json_provider: "/categories.json",
}',
];
echo $this->element('Avmaps.google_map', $element_options);
// end of dynamic map preparation.
?>
|