You are here

function leaflet_markercluster_library in Leaflet Markercluster 7

Implements hook_library().

File

./leaflet_markercluster.module, line 6

Code

function leaflet_markercluster_library() {
  if (!($path = leaflet_markercluster_get_library_path())) {
    return NULL;
  }
  $libraries['leaflet_markercluster'] = array(
    'title' => 'Leaflet Markercluster',
    'version' => 0.4,
    'js' => array(
      array(
        'type' => 'file',
        'data' => "{$path}/leaflet.markercluster.js",
        'group' => JS_LIBRARY,
        'preprocess' => FALSE,
        'weight' => 1,
      ),
    ),
    'css' => array(
      "{$path}/MarkerCluster.css" => array(
        'type' => 'file',
        'media' => 'screen',
      ),
      "{$path}/MarkerCluster.Default.css" => array(
        'type' => 'file',
        'media' => 'screen',
      ),
      "{$path}/MarkerCluster.Default.ie.css" => array(
        'type' => 'file',
        'media' => 'screen',
        'every_page' => TRUE,
        'browsers' => array(
          'IE' => 'lte IE 8',
          '!IE' => FALSE,
          'preprocess' => FALSE,
        ),
      ),
    ),
  );
  return $libraries;
}