corrected display of geocoder results
This commit is contained in:
parent
635b13b61c
commit
611d265a27
@ -84,20 +84,20 @@ _showResults: function(response, parameters) {
|
|||||||
|
|
||||||
// show possible results for input
|
// show possible results for input
|
||||||
var html = "";
|
var html = "";
|
||||||
html += '<table class="results-table medium-font">';
|
html += '<table class="description medium-font">';
|
||||||
for(var i=0; i < response.length; i++){
|
for(var i=0; i < response.length; i++){
|
||||||
var result = response[i];
|
var result = response[i];
|
||||||
|
|
||||||
//odd or even ?
|
//odd or even ?
|
||||||
var rowstyle='results-odd';
|
var rowstyle='description-body-odd';
|
||||||
if(i%2==0) { rowstyle='results-even'; }
|
if(i%2==0) { rowstyle='description-body-even'; }
|
||||||
|
|
||||||
html += '<tr class="'+rowstyle+'">';
|
html += '<tr class="'+rowstyle+'">';
|
||||||
html += '<td class="result-counter"><span">'+(i+1)+'.</span></td>';
|
html += '<td class="description-body-counter"><span">'+(i+1)+'.</span></td>';
|
||||||
html += '<td class="result-items">';
|
html += '<td class="description-body-items">';
|
||||||
|
|
||||||
if(result.display_name){
|
if(result.display_name){
|
||||||
html += '<div class="result-item" onclick="OSRM.Geocoder._onclickResult(\''+parameters.marker_id+'\', '+result.lat+', '+result.lon+');">'+result.display_name+'</div>';
|
html += '<div class="description-body-item" onclick="OSRM.Geocoder._onclickResult(\''+parameters.marker_id+'\', '+result.lat+', '+result.lon+');">'+result.display_name+'</div>';
|
||||||
}
|
}
|
||||||
html += "</td></tr>";
|
html += "</td></tr>";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user