@@ -262,9 +262,9 @@
let content = `
${props.name || 'Elemento'}
{{ __("Progress") }}: ${props.progress || 0}%
{{ __("Responsible") }}: ${props.responsible || '-'}
-
`;
+
`;
layer.bindPopup(content);
- layer.on('click', function() { selectFeature(featId); });
+ layer.on('click', function() { selectFeature(' + featId + '); });
}
});
layers[{{ $phase->id }}] = phaseLayer;
@@ -348,7 +348,7 @@
m.forEach(marker => {
const popupContent = `
${marker.name}

`;
+ onclick="window.openViewer('${marker.image_url}', '${marker.image_name}')" />`;
L.marker([marker.lat, marker.lng], { icon: photoIcon })
.bindPopup(popupContent)
.addTo(imageMarkersLayer);