2015-01-10 12:55:48 +01:00
|
|
|
<?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',
|
2016-10-05 09:05:28 +02:00
|
|
|
'version' => '1.0.1',
|
2015-01-10 12:55:48 +01:00
|
|
|
'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',
|
2015-01-10 12:55:48 +01:00
|
|
|
'javascript' => 'assets/leaflet/libs/leaflet/leaflet.js',
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-providers'] = array
|
|
|
|
|
(
|
|
|
|
|
'name' => 'Leaflet-providers',
|
2016-10-04 13:43:39 +02:00
|
|
|
'version' => '1.1.15',
|
2015-01-10 12:55:48 +01:00
|
|
|
'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-10 12:55:48 +01:00
|
|
|
);
|
|
|
|
|
|
2015-01-13 13:44:49 +01:00
|
|
|
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-omnivore'] = array
|
|
|
|
|
(
|
|
|
|
|
'name' => 'Leaflet-omnivore',
|
|
|
|
|
'version' => '0.3.2',
|
|
|
|
|
'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'
|
|
|
|
|
);
|
|
|
|
|
|
2015-01-21 14:24:25 +01:00
|
|
|
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-markercluster'] = array
|
|
|
|
|
(
|
|
|
|
|
'name' => 'Leaflet.markercluster',
|
2016-10-05 09:07:55 +02:00
|
|
|
'version' => '1.0.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'
|
|
|
|
|
);
|
|
|
|
|
|
2015-01-10 12:55:48 +01:00
|
|
|
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-loading'] = array
|
|
|
|
|
(
|
|
|
|
|
'name' => 'Leaflet.loading',
|
2016-10-04 13:47:23 +02:00
|
|
|
'version' => '0.1.23',
|
2015-01-10 12:55:48 +01:00
|
|
|
'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-10 12:55:48 +01:00
|
|
|
);
|
|
|
|
|
|
2015-01-20 16:03:59 +01:00
|
|
|
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-fullscreen'] = array
|
|
|
|
|
(
|
|
|
|
|
'name' => 'Leaflet.Control.FullScreen',
|
2016-10-04 13:50:43 +02:00
|
|
|
'version' => '1.4.2',
|
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'
|
|
|
|
|
);
|
|
|
|
|
|
2016-11-09 10:00:02 +01:00
|
|
|
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-layer-overpass'] = array
|
|
|
|
|
(
|
|
|
|
|
'name' => 'Leaflet Layer OverPass',
|
|
|
|
|
'version' => '1.0.2',
|
|
|
|
|
'license' => '<a href="https://github.com/kartenkarsten/leaflet-layer-overpass/blob/master/LICENSE" target="_blank">License</a>',
|
|
|
|
|
'homepage' => 'https://github.com/kartenkarsten/leaflet-layer-overpass',
|
|
|
|
|
'css' => 'assets/leaflet/libs/leaflet-layer-overpass/OverPassLayer.css',
|
|
|
|
|
'javascript' => 'assets/leaflet/libs/leaflet-layer-overpass/OverPassLayer.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',
|
2016-10-04 13:53:34 +02:00
|
|
|
'version' => '1.5.1',
|
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
|
|
|
);
|
|
|
|
|
|
2015-01-10 12:55:48 +01:00
|
|
|
$GLOBALS['LEAFLET_LIBRARIES']['spin.js'] = array
|
|
|
|
|
(
|
|
|
|
|
'name' => 'spin.js',
|
2016-10-04 13:55:29 +02:00
|
|
|
'version' => '2.3.2',
|
2015-01-10 12:55:48 +01:00
|
|
|
'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'
|
|
|
|
|
);
|