remove error from javascript file with L variable

This commit is contained in:
Tanguy PATTE 2015-08-24 11:41:50 +02:00
parent c8baf0c280
commit a9b001e762
7 changed files with 831 additions and 819 deletions

View file

@ -1,3 +1,4 @@
if (typeof L != 'undefined') {
(function () {
OSM = L.tileLayer("http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png", {
attribution: '&copy; Openstreetmap France | &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
@ -99,3 +100,4 @@
}
}).call(this);
}

View file

@ -1,3 +1,4 @@
if (typeof L != 'undefined') {
L.Control.EasyButtons = L.Control.extend({
options: {
position: 'topleft',
@ -56,3 +57,4 @@ L.easyButton = function( btnIcon , btnFunction , btnTitle , btnMap , btnId) {
}
return newControl;
};
}

View file

@ -1,3 +1,4 @@
if (typeof L != 'undefined') {
L.PhotonBase = L.Class.extend({
forEach: function (els, callback) {
@ -442,3 +443,4 @@ L.PhotonReverse = L.PhotonBase.extend({
}
});
}

View file

@ -1,3 +1,4 @@
if (typeof L != 'undefined') {
L.SpinMapMixin = {
spin: function (state, options) {
if (!!state) {
@ -39,3 +40,4 @@ L.Map.addInitHook(function () {
e.layer.off('data:loading');
}, this);
});
}

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,6 @@
if (typeof L != 'undefined') {
(function () {
API_URL = '//api-adresse.data.gouv.fr';
var showSearchPoints = function (geojson) {
@ -264,3 +266,4 @@
}).call(this);
}

View file

@ -16,6 +16,5 @@
//= require_tree .
//= require jquery
//= require bootstrap-sprockets
//= require bootstrap-datepicker/core
//= require bootstrap-datepicker/locales/bootstrap-datepicker.fr.js