Coming from this answer to customization of marker in leafleat: remove blue background from markers, now i have the following problem:
.html file:
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<title>TITLE</title>
</head>
<body>
<div id="map"></div>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script>
<script src="mapscript.js"></script>
</body>
</html>
style.css:
#map { height: 500px; }
[role=button],button,input[type=button],input[type=reset],input[type=submit]{
--background-color:none;
--border-color:none;
}
[role=button]:is([aria-current],:hover,:active,:focus),button:is([aria-current],:hover,:active,:focus),input[type=button]:is([aria-current],:hover,:active,:focus),input[type=reset]:is([aria-current],:hover,:active,:focus),input[type=submit]:is([aria-current],:hover,:active,:focus){
--background-color:none;
--border-color:none;
}
.leaflet-control-zoom-in, .leaflet-control-zoom-out {
background-image: none;
text-indent: -9999px;
background-repeat: no-repeat;
background-size: cover;
border: none;
}
.leaflet-control-zoom-in {
background-image: url('./immagini/plus-circle-svgrepo-com.svg');
}
.leaflet-control-zoom-out {
background-image: url('./immagini/minus-circle-svgrepo-com.svg');
}
I can't understand how to remove background from zoom-in and zoom-out buttons as i'm using svg files with transparent background.