Few cleanup

pull/18/head
Sami Mokaddem 2017-10-27 08:30:04 +02:00
parent c137932770
commit 0e63e47364
2 changed files with 1 additions and 18 deletions

View File

@ -194,15 +194,9 @@ def getCoordsByRadius():
dico_coord[str(coord)] = [data]
for dicoCoord, array in dico_coord.items():
print(array)
dicoCoord = json.loads(dicoCoord)
to_return.append([array, dicoCoord])
#res = [ [json.loads(data), coord] for data, coord in res ] #correctly send the json
#to_return.append(res)
import pprint
pprint.pprint(to_return)
return jsonify(to_return)
@app.route("/_logs")

View File

@ -335,17 +335,6 @@ small {
savedMarkerRadius[i].remove(); // remove marker
}
//for (var listIndex in allList) {
// var list = allList[listIndex];
// for (var dayListIndex in list) {
// var jsonData = list[dayListIndex][0];
// var coordJson = list[dayListIndex][1];
// var marker = L.marker([coordJson[1], coordJson[0]]).addTo(radiusOpenStreetMap);
// savedMarkerRadius.push(marker);
// marker.bindPopup('<strong>'+jsonData.categ+': </strong> '+jsonData.value, {autoClose:false}).openPopup();
// }
//}
for (var listIndex in allList) {
var curMarker = allList[listIndex];
var dataText = "";
@ -405,7 +394,7 @@ small {
datePickerWidget.datepicker("setDate", new Date());
// radius
radiusOpenStreetMap = L.map('radiusMap', {closePopupOnClick: false} ).setView([30, 0], 2);
radiusOpenStreetMap = L.map('radiusMap').setView([30, 0], 2);
new L.TileLayer(OSMURL, {minZoom: 0, maxZoom: 18}).addTo(radiusOpenStreetMap);
datePickersRadiusWidgetFrom = $( "#datepickerRadiusFrom" )
datePickersRadiusWidgetFrom.datepicker(datePickerRadiusOptions);