Remove blinking to geolocation marker
This commit is contained in:
parent
85abb4b57e
commit
08b065a16a
2 changed files with 5 additions and 14 deletions
|
@ -868,12 +868,11 @@ L.U.LocateControl = L.Control.extend({
|
||||||
|
|
||||||
map._geolocated_circle = L.circle(map.getCenter(), {
|
map._geolocated_circle = L.circle(map.getCenter(), {
|
||||||
radius: 10,
|
radius: 10,
|
||||||
weight: 0,
|
weight: 0
|
||||||
className: "blinking"
|
|
||||||
});
|
});
|
||||||
|
|
||||||
map._geolocated_marker = L.marker(map.getCenter(), {
|
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);
|
map.on("locationerror", this.onError, this);
|
||||||
|
|
|
@ -1336,20 +1336,12 @@ a.add-datalayer:hover,
|
||||||
/* *********** */
|
/* *********** */
|
||||||
/* Geolocation */
|
/* Geolocation */
|
||||||
/* *********** */
|
/* *********** */
|
||||||
@keyframes fade {
|
|
||||||
from { opacity: 0.5; }
|
|
||||||
}
|
|
||||||
|
|
||||||
.blinking {
|
|
||||||
animation: fade 1s infinite alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
.geolocated {
|
.geolocated {
|
||||||
width: 10px !important;
|
width: 16px !important;
|
||||||
height: 10px!important;
|
height: 16px!important;
|
||||||
background-color: #3388ff;
|
background-color: #3388ff;
|
||||||
border: 1px solid white;
|
border: 1px solid white;
|
||||||
border-radius: 5px;
|
border-radius: 8px;
|
||||||
box-shadow: 1px 5px 5px black;
|
box-shadow: 1px 5px 5px black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue