fix files url in leaflet.css (??) why does it still not work ..

This commit is contained in:
Swrup 2021-12-16 09:38:29 +01:00
parent 634db4b06e
commit c38e90ac07
3 changed files with 3 additions and 14 deletions

View file

@ -348,12 +348,12 @@ svg.leaflet-image-layer.leaflet-interactive path {
border-radius: 5px;
}
.leaflet-control-layers-toggle {
background-image: url(images/layers.png);
background-image: url(/assets/img/layers.png);
width: 36px;
height: 36px;
}
.leaflet-retina .leaflet-control-layers-toggle {
background-image: url(images/layers-2x.png);
background-image: url(/assets/img/layers-2x.png);
background-size: 26px 26px;
}
.leaflet-touch .leaflet-control-layers-toggle {
@ -394,7 +394,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
/* Default icon URLs */
.leaflet-default-icon-path {
background-image: url(images/marker-icon.png);
background-image: url(/assets/img/marker-icon.png);
}

View file

@ -75,13 +75,3 @@
(with-stdout-to
%{null}
(run ocaml-crunch -m plain content -o %{target}))))
(install
(section share)
(files
./content/assets/css/leaflet.css
(./content/assets/img/layers-2x.png as images/layers-2x.png)
(./content/assets/img/layers.png as images/layers.png)
(./content/assets/img/marker-icon-2x.png as images/marker-icon-2x.png)
(./content/assets/img/marker-icon.png as images/marker-icon.png)
(./content/assets/img/marker-shadow.png as images/marker-shadow.png)))

View file

@ -7,7 +7,6 @@ let render_unsafe ~title ~content request =
<link href="/assets/css/bootstrap.min.css" rel="stylesheet"/>
<link href="/assets/css/leaflet.css" rel="stylesheet">
<link href="/assets/css/style.css" rel="stylesheet">
<link href="/assets/img/marker-icon.png" rel="marker-icon">
</head>
<body>
<header>