$("#settings-references").css('display', 'block');
}
-
-
var map_enabled = false;
- var marker = L.marker([0,0]);
+ var marker = L.circleMarker([0,0]);
var map = null;
function enable_map() {
+ $("#reference-map").show('slow');
+
if (map_enabled) return;
map = L.map('reference-map').setView([0, 0], 11);
enable_map();
marker.setLatLng(ref.location);
- //marker.setContent(ref.label);
marker.bindTooltip(ref.label).openTooltip();
map.addLayer(marker);
map.panTo(ref.location, {
}
}
- $("#reference-images img").remove();
+ $("#reference-images a").remove();
if (ref.images) {
$.each(ref.images, function(i, e) {
$i = $("<a target='_blank'><img></a>");