<commit_before>/* Basemap Layers */
var attr_osm = 'Map data &copy; <a href="http://openstreetmap.org/">OpenStreetMap</a> contributors',
      attr_overpass = 'POI via <a href="http://www.overpass-api.de/">Overpass API</a>';
//var osm = new L.TileLayer('http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {opacity: 0.7, attribution: [attr_osm, attr_overpass].join(', ')});
var osm = new L.TileLayer('http://{s}.tile.stamen.com/toner-lite/{z}/{x}/{y}.png', {opacity: 0.7, attribution: [attr_osm, attr_overpass].join(', ')});

var map = new L.Map('map').addLayer(osm).setView(new L.LatLng(48.84702,2.37705), 17);

/* Larger screens get expanded layer control */
if (document.body.clientWidth <= 767) {
  var isCollapsed = true;
} else {
  var isCollapsed = false;
}

/* Leaflet sidebar */
var sidebar = L.control.sidebar("sidebar", {
  closeButton: true,
  position: "left"
}).addTo(map);
//les fonctions liées à l'éditeur OSM sont dans OSM_js_editor.js

/*OverPassAPI overlay*/
    var tous = draw_beer("http://overpass-api.de/api/interpreter?data=[out:json];(node(BBOX)[amenity=bar];node(BBOX)[amenity=cafe];node(BBOX)[amenity=pub]);out;>;out;", "assets/img/beer1.png");
    
    var leffe = draw_beer("http://overpass-api.de/api/interpreter?data=[out:json];node(BBOX)[brewery~Leffe];out;", "assets/img/beer2.png"); 
    	
    var chouffe = draw_beer("http://overpass-api.de/api/interpreter?data=[out:json];node(BBOX)[brewery~Chouffe];out;", "assets/img/beer4.png");  
    
    var karmeliet = draw_beer("http://overpass-api.de/api/interpreter?data=[out:json];node(BBOX)[brewery~Tripel_Karmeliet];out;", "assets/img/beer3.png");
//les fonctions utilisées pour récupérer les données et les placer sont dans BeerLayer.js   
    
    
    var baseMaps = {
        "OpenStreetMap": osm,
    };

    var overlayMaps = {
        "<img src='assets/img/beer1.png' width='24' height='28'>&nbsp;Boire": tous,
        "<img src='assets/img/beer4.png' width='24' height='28'>&nbsp;Avec de la Chouffe": chouffe,
	"<img src='assets/img/beer3.png' width='24' height='28'>&nbsp;Avec de la Carmélite Triple": karmeliet,
	"<img src='assets/img/beer2.png' width='24' height='28'>&nbsp;Avec de la Leffe": leffe

    };
    map.addLayer(tous);

 L.control.layers(baseMaps, overlayMaps, {
  collapsed: isCollapsed
}).addTo(map);
 
/*supprimer la barre de progression quand tout le js est traité */
$(document).one("ajaxStop", function () {$("#loading").hide(); });

<commit_msg>ajout de layers de bières<commit_after>/* Basemap Layers */
var attr_osm = 'Map data &copy; <a href="http://openstreetmap.org/">OpenStreetMap</a> contributors',
      attr_overpass = 'POI via <a href="http://www.overpass-api.de/">Overpass API</a>';
//var osm = new L.TileLayer('http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {opacity: 0.7, attribution: [attr_osm, attr_overpass].join(', ')});
var osm = new L.TileLayer('http://{s}.tile.stamen.com/toner-lite/{z}/{x}/{y}.png', {opacity: 0.7, attribution: [attr_osm, attr_overpass].join(', ')});

var map = new L.Map('map').addLayer(osm).setView(new L.LatLng(48.84702,2.37705), 17);

/* Larger screens get expanded layer control */
if (document.body.clientWidth <= 767) {
  var isCollapsed = true;
} else {
  var isCollapsed = false;
}

/* Leaflet sidebar */
var sidebar = L.control.sidebar("sidebar", {
  closeButton: true,
  position: "left"
}).addTo(map);
//les fonctions liées à l'éditeur OSM sont dans OSM_js_editor.js

/*OverPassAPI overlay*/
    var tous = draw_beer("http://overpass-api.de/api/interpreter?data=[out:json];(node(BBOX)[amenity=bar];node(BBOX)[amenity=cafe];node(BBOX)[amenity=pub]);out;>;out;", "assets/img/beer1.png");
    
    var leffe = draw_beer("http://overpass-api.de/api/interpreter?data=[out:json];node(BBOX)[brewery~Leffe];out;", "assets/img/beer2.png"); 
    	
    var chouffe = draw_beer("http://overpass-api.de/api/interpreter?data=[out:json];node(BBOX)[brewery~Chouffe];out;", "assets/img/beer4.png");  
    
    var chimay = draw_beer("http://overpass-api.de/api/interpreter?data=[out:json];node(BBOX)[brewery~Chimay];out;", "assets/img/beer1.png");  
	
    var guinness = draw_beer("http://overpass-api.de/api/interpreter?data=[out:json];node(BBOX)[brewery~Guinness];out;", "assets/img/beer1.png");  
	
    var karlsberg = draw_beer("http://overpass-api.de/api/interpreter?data=[out:json];node(BBOX)[brewery~Karlsberg];out;", "assets/img/beer1.png"); 
	
    var amstel = draw_beer("http://overpass-api.de/api/interpreter?data=[out:json];node(BBOX)[brewery~Amstel];out;", "assets/img/beer1.png"); 
	
    var karmeliet = draw_beer("http://overpass-api.de/api/interpreter?data=[out:json];node(BBOX)[brewery~Tripel_Karmeliet];out;", "assets/img/beer3.png");
//les fonctions utilisées pour récupérer les données et les placer sont dans BeerLayer.js   
    
    
    var baseMaps = {
        "OpenStreetMap": osm,
    };

    var overlayMaps = {
        "<img src='assets/img/beer1.png' width='24' height='28'>&nbsp;Boire": tous,
        "<img src='assets/img/beer4.png' width='24' height='28'>&nbsp;Avec de la Chouffe": chouffe,
        "<img src='assets/img/beer3.png' width='24' height='28'>&nbsp;Avec de la Carmélite Triple": karmeliet,
        "<img src='assets/img/beer2.png' width='24' height='28'>&nbsp;Avec de la Leffe": leffe,
        "<img src='assets/img/beer1.png' width='24' height='28'>&nbsp;Avec de la Chimay": chimay,
        "<img src='assets/img/beer1.png' width='24' height='28'>&nbsp;Avec de la Guinness": guinness,
        "<img src='assets/img/beer1.png' width='24' height='28'>&nbsp;Avec de la Karlsberg": karlsberg,
        "<img src='assets/img/beer1.png' width='24' height='28'>&nbsp;Avec de la Amstel": amstel
    };
    map.addLayer(tous);

 L.control.layers(baseMaps, overlayMaps, {
  collapsed: isCollapsed
}).addTo(map);
 
/*supprimer la barre de progression quand tout le js est traité */
$(document).one("ajaxStop", function () {$("#loading").hide(); });


{'fraction_non_alphanumeric': 0.19834989055396532, 'fraction_numerical': 0.019531907728573834, 'mean_word_length': 4.593220338983051, 'pattern_counts': {'":': 14, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7103255', 'n_tokens_mistral': 2375, 'n_tokens_neox': 2275, 'n_words': 378}