Skip to content

Commit

Permalink
lista de centros cercanos, closes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjcsr committed Mar 27, 2014
1 parent 3b9f870 commit f495c34
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/assets/javascripts/static_pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ mapa.on('dragend', function(e) {
console.log(mapa.getBounds().getCenter().lng)
if (mapa.getZoom() == 14){
getCentros(mapa.getBounds().getCenter().lat,mapa.getBounds().getCenter().lng)
addDatosMustache(markers.getGeoJSON());
showDataAtZoom(markers.getGeoJSON());
} else {
getCentros();
}
Expand Down Expand Up @@ -186,10 +186,10 @@ function addDatos(){
$('#vendor-info-now h3').html('Cargando...')
}

function addDatosMustache(data){
var mustacheScheduleEntry = $('#mustache-entry').html()
var $panelNow = $('#vendor-info-now .vendor-entry-list')
$panelNow.html(Mustache.render(mustacheScheduleEntry,data));
function showDataAtZoom(data){
var mustacheTemplate = $('#mustache-entry').html()
var $panelCerca = $('#vendor-info-now .vendor-entry-list')
$panelCerca.html(Mustache.render(mustacheTemplate,data));
}


Expand Down

0 comments on commit f495c34

Please sign in to comment.