Update Leaflet

This commit is contained in:
Jan-Lukas Else 2022-10-22 20:29:45 +02:00
parent ac0464dd8c
commit 08da511717
4 changed files with 10 additions and 9 deletions

View File

@ -16,7 +16,7 @@ ADD plugins/ /app/plugins/
FROM buildbase as build FROM buildbase as build
RUN go build -ldflags '-w -s -X tailscale.com/version.Long=GoBlog' -o GoBlog RUN go build -ldflags '-w -s' -o GoBlog
FROM build as test FROM build as test

View File

@ -423,8 +423,11 @@ svg.leaflet-image-layer.leaflet-interactive path {
.leaflet-control-attribution a:focus { .leaflet-control-attribution a:focus {
text-decoration: underline; text-decoration: underline;
} }
.leaflet-control-attribution svg { .leaflet-attribution-flag {
display: inline !important; display: inline !important;
vertical-align: baseline !important;
width: 1em;
height: 0.6669em;
} }
.leaflet-left .leaflet-control-scale { .leaflet-left .leaflet-control-scale {
margin-left: 5px; margin-left: 5px;
@ -537,8 +540,6 @@ svg.leaflet-image-layer.leaflet-interactive path {
} }
.leaflet-popup-scrolled { .leaflet-popup-scrolled {
overflow: auto; overflow: auto;
border-bottom: 1px solid #ddd;
border-top: 1px solid #ddd;
} }
.leaflet-oldie .leaflet-popup-content-wrapper { .leaflet-oldie .leaflet-popup-content-wrapper {
@ -652,6 +653,6 @@ svg.leaflet-image-layer.leaflet-interactive path {
/* Prevent printers from removing background-images of controls. */ /* Prevent printers from removing background-images of controls. */
.leaflet-control { .leaflet-control {
-webkit-print-color-adjust: exact; -webkit-print-color-adjust: exact;
color-adjust: exact; print-color-adjust: exact;
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -99,12 +99,12 @@
// CSS // CSS
let css = document.createElement('link') let css = document.createElement('link')
css.rel = 'stylesheet' css.rel = 'stylesheet'
css.href = '/-/leaflet/leaflet.css?v=1.8.0' css.href = '/-/leaflet/leaflet.css?v=1.9.2'
document.head.appendChild(css) document.head.appendChild(css)
// JS // JS
let script = document.createElement('script') let script = document.createElement('script')
script.src = '/-/leaflet/leaflet.js?v=1.8.0' script.src = '/-/leaflet/leaflet.js?v=1.9.2'
script.onload = loadMap script.onload = loadMap
document.head.appendChild(script) document.head.appendChild(script)
})() })()