use default tooltip opacity and z-index

This commit is contained in:
root 2024-10-24 02:18:14 +00:00
parent c4e1490dda
commit ff4e8838ca

View file

@ -71,9 +71,6 @@
.leaflet-top { .leaflet-top {
top: 4em; top: 4em;
} }
.leaflet-tooltip-pane {
z-index: 750;
}
.leaflet-tooltip, .leaflet-popup-content { .leaflet-tooltip, .leaflet-popup-content {
font-family: "Roboto", sans-serif; font-family: "Roboto", sans-serif;
font-size: 12px; font-size: 12px;
@ -288,7 +285,7 @@
</tbody></table> </tbody></table>
` `
L.polyline([position, markersByNode[neighborNum].getLatLng()], {weight: 4}) L.polyline([position, markersByNode[neighborNum].getLatLng()], {weight: 4})
.bindTooltip(neighborContent, {sticky: true, opacity: 1.0}) .bindTooltip(neighborContent, {sticky: true})
.on('click', () => showNode(neighborNum)) .on('click', () => showNode(neighborNum))
.addTo(detailsLayer) .addTo(detailsLayer)
}) })