Files
contao-leaflet-libraries/module/config/config.php

122 lines
5.5 KiB
PHP
Raw Normal View History

<?php
/*
* Leaflet assets.
*
* The leaflet definition are aware of the required javascript libraries. Register the assets so that they are
* loaded automatically.
*
* Each entry is an array of 2 values. The first is the resource. The second is a type. Supported types are:
* - url: An valid url.
* - file: An file path relative to the Contao Root.
* - source: Inline css/javascript.
*
* You don't have to define it as array if you simply add a file. Do not add |static and or media type flag to it.
* It's getting added by default if not being in debug mode.
*/
$GLOBALS['LEAFLET_LIBRARIES']['leaflet'] = array
(
'name' => 'Leaflet',
2018-08-23 14:57:27 +02:00
'version' => '1.3.4',
'license' => '<a href="https://github.com/Leaflet/Leaflet/blob/master/LICENSE" target="_blank">BSD-2-Clause</a>',
'homepage' => 'http://leafletjs.com',
2015-01-20 13:04:31 +01:00
'css' => 'assets/leaflet/libs/leaflet/leaflet.min.css',
'javascript' => 'assets/leaflet/libs/leaflet/leaflet-src.js',
);
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-providers'] = array
(
'name' => 'Leaflet-providers',
2017-07-06 16:51:37 +02:00
'version' => '1.1.17',
'license' => '<a href="https://github.com/leaflet-extras/leaflet-providers/blob/master/license.md" target="_blank">BSD-2-Clause</a>',
'homepage' => 'http://leaflet-extras.github.io/leaflet-providers',
2015-01-20 13:04:31 +01:00
'javascript' => 'assets/leaflet/libs/leaflet-providers/leaflet-providers.min.js'
);
2015-01-21 14:24:25 +01:00
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-markercluster'] = array
(
'name' => 'Leaflet.markercluster',
'version' => '1.3.0',
2015-01-21 14:24:25 +01:00
'license' => '<a href="https://github.com/Leaflet/Leaflet.markercluster/blob/master/MIT-LICENCE.txt" target="_blank">MIT</a>',
'homepage' => 'https://github.com/Leaflet/Leaflet.markercluster',
'css' => 'assets/leaflet/libs/leaflet-markercluster/MarkerCluster.css',
'javascript' => 'assets/leaflet/libs/leaflet-markercluster/leaflet.markercluster.js'
);
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-omnivore'] = array
(
'name' => 'Leaflet-omnivore',
'version' => '0.3.4',
'license' => '<a href="https://github.com/mapbox/leaflet-omnivore/blob/master/LICENSE" target="_blank">BSD</a>',
'homepage' => 'https://github.com/mapbox/leaflet-omnivore',
'javascript' => 'assets/leaflet/libs/leaflet-omnivore/leaflet-omnivore.min.js'
);
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-loading'] = array
(
'name' => 'Leaflet.loading',
'version' => '0.1.24',
'license' => '<a href="https://github.com/ebrelsford/Leaflet.loading/blob/master/LICENSE" target="_blank">MIT</a>',
'homepage' => 'https://github.com/ebrelsford/Leaflet.loading',
2015-01-20 13:04:31 +01:00
'css' => 'assets/leaflet/libs/leaflet-loading/Control.Loading.min.css',
'javascript' => 'assets/leaflet/libs/leaflet-loading/Control.Loading.min.js'
);
2015-01-20 16:03:59 +01:00
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-fullscreen'] = array
(
'name' => 'Leaflet.Control.FullScreen',
2017-07-06 16:38:23 +02:00
'version' => '1.4.3',
2015-01-20 16:03:59 +01:00
'license' => '<a href="https://github.com/brunob/leaflet.fullscreen/blob/master/LICENSE" target="_blank">MIT</a>',
'homepage' => 'https://github.com/brunob/leaflet.fullscreen',
'css' => 'assets/leaflet/libs/leaflet-fullscreen/Control.FullScreen.min.css',
'javascript' => 'assets/leaflet/libs/leaflet-fullscreen/Control.FullScreen.min.js'
);
2015-06-18 16:26:12 +02:00
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-control-geocoder'] = array
2015-01-10 13:00:56 +01:00
(
'name' => 'Leaflet Control Geocoder',
2018-02-06 16:59:33 +01:00
'version' => '1.5.8',
2015-01-10 13:00:56 +01:00
'license' => '<a href="https://github.com/perliedman/leaflet-control-geocoder/blob/master/LICENSE" target="_blank">BSD-2-Clause</a>',
'homepage' => 'https://github.com/perliedman/leaflet-control-geocoder',
2015-01-20 13:04:31 +01:00
'css' => 'assets/leaflet/libs/control-geocoder/Control.Geocoder.min.css',
'javascript' => 'assets/leaflet/libs/control-geocoder/Control.Geocoder.min.js'
2015-01-10 13:00:56 +01:00
);
2016-11-13 21:53:08 +01:00
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-extra-markers'] = array
(
'name' => 'Leaflet Extra Markers',
'version' => '1.0.6',
'license' => '<a href="https://github.com/coryasilva/Leaflet.ExtraMarkers/blob/master/LICENSE" target="_blank">MIT</a>',
'homepage' => 'https://github.com/coryasilva/Leaflet.ExtraMarkers',
2016-11-14 13:31:19 +01:00
'css' => 'assets/leaflet/libs/leaflet-extra-markers/css/leaflet.extra-markers.min.css',
'javascript' => 'assets/leaflet/libs/leaflet-extra-markers/js/leaflet.extra-markers.min.js'
2016-11-13 21:53:08 +01:00
);
2018-01-26 19:55:36 +01:00
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-pm'] = array
(
'name' => 'leaflet.pm',
'version' => '0.23.1',
'license' => '<a href="https://github.com/codeofsumit/leaflet.pm/blob/develop/LICENSE" target="_blank">MIT</a>',
'homepage' => 'https://github.com/codeofsumit/leaflet.pm',
'css' => 'assets/leaflet/libs/leaflet-pm/leaflet.pm.css',
'javascript' => 'assets/leaflet/libs/leaflet-pm/leaflet.pm.min.js'
);
$GLOBALS['LEAFLET_LIBRARIES']['osmtogeojson'] = array
(
'name' => 'osmtogeojson',
'version' => '2.2.12',
'license' => '<a href="https://github.com/tyrasd/osmtogeojson/blob/gh-pages/LICENSE" target="_blank">MIT</a>',
'homepage' => 'https://github.com/tyrasd/osmtogeojson',
'javascript' => 'assets/leaflet/libs/osmtogeojson/osmtogeojson.js'
);
$GLOBALS['LEAFLET_LIBRARIES']['spin.js'] = array
(
'name' => 'spin.js',
2016-10-04 13:55:29 +02:00
'version' => '2.3.2',
'license' => '<a href="https://github.com/fgnass/spin.js/blob/master/LICENSE.txt" target="_blank">MIT</a>',
'homepage' => 'http://fgnass.github.io/spin.js',
'javascript' => 'assets/leaflet/libs/spin-js/spin.min.js'
);