Commit 00df6e36 authored by Matija Obreza's avatar Matija Obreza
Browse files

Render active institutes on a map

parent c8968a7b
......@@ -31,7 +31,11 @@
center: new GenesysMaps.LatLng(0, 0)
}, function(el, map) {
var jsonInstitutes=${jsonInstitutes};
var heatmapData=[];
jsonInstitutes.forEach(function(inst) {
var marker = L.marker([inst.lat, inst.lng]).addTo(map);
marker.bindPopup("<a href='<c:url value="/wiews/" />" + inst.code +"'>"+inst.title+"</a>");
});
/* var heatmapData=[];
jsonInstitutes.forEach(function(inst) {
heatmapData.push(new google.maps.LatLng(inst.lat, inst.lng));
});
......@@ -42,7 +46,7 @@
//opacity: 1,
//radius: 3
});
heatmap.setMap(map);
heatmap.setMap(map); */
map.fitBounds(GenesysMaps.boundingBox(jsonInstitutes));
});
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment