You are here

function leaflet_markercluster_preprocess_leaflet_map in Leaflet Markercluster 8

Preprocess the leaflet_map theme function to add the markercluster libraries.

Parameters

[type] &$vars [description]:

Return value

[type] [description]

File

./leaflet_markercluster.module, line 10

Code

function leaflet_markercluster_preprocess_leaflet_map(&$vars) {
  $vars['#attached']['library'][] = 'leaflet_markercluster/leaflet-markercluster';
  $vars['#attached']['library'][] = 'leaflet_markercluster/leaflet-markercluster-drupal';
}