Remove blinking to geolocation marker

This commit is contained in:
Yohan Boniface 2020-03-22 13:43:21 +01:00
parent 85abb4b57e
commit 08b065a16a
2 changed files with 5 additions and 14 deletions

View file

@ -868,12 +868,11 @@ L.U.LocateControl = L.Control.extend({
map._geolocated_circle = L.circle(map.getCenter(), {
radius: 10,
weight: 0,
className: "blinking"
weight: 0
});
map._geolocated_marker = L.marker(map.getCenter(), {
icon: L.divIcon({className: 'geolocated blinking', iconAnchor: [4, 7]}),
icon: L.divIcon({className: 'geolocated', iconAnchor: [8, 9]}),
});
map.on("locationerror", this.onError, this);

View file

@ -1336,20 +1336,12 @@ a.add-datalayer:hover,
/* *********** */
/* Geolocation */
/* *********** */
@keyframes fade {
from { opacity: 0.5; }
}
.blinking {
animation: fade 1s infinite alternate;
}
.geolocated {
width: 10px !important;
height: 10px!important;
width: 16px !important;
height: 16px!important;
background-color: #3388ff;
border: 1px solid white;
border-radius: 5px;
border-radius: 8px;
box-shadow: 1px 5px 5px black;
}