| " + litres + " L | "; } else { txt += "" + litres + " L | "; } txt += "per il " + json[i].prices[j].fuel_name + " | "; txt += ""; if(json[i].prices[j].price_self) { txt += "(self)"; } else { txt += ""; } txt += " | "; txt += ""; } txt += "
+ " + L10N.actionFavorites + ""; txt += "segnala errore
"; var m = L.marker([json[i].station_lat, json[i].station_lon], { bounceOnAdd: true, bounceOnAddOptions: {duration: 500, height: 100}, bounceOnAddCallback: function() {} }) .bindPopup(txt) .addTo(map) .options; m.station_ID = json[i].station_ID; } postCallback && postCallback(bounds, json); }); } function suggest_nominatim_addresses(query) { $.ajax({ url: "https://nominatim.openstreetmap.org/search", jsonp: "nominatimJsonp", dataType: "jsonp", data: { q: query, format: "json", json_callback: "nominatimJsonp" } }); } function nominatimJsonp(json) { var $searchResults = $("#modal-search-addr-results"); var $list = $searchResults.find("ol").empty(); if(json.length > 0) { for(i=0; i