From 08b065a16a43af0e18bb1f8df21539b39c8e353d Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sun, 22 Mar 2020 13:43:21 +0100 Subject: [PATCH] Remove blinking to geolocation marker --- umap/static/umap/js/umap.controls.js | 5 ++--- umap/static/umap/map.css | 14 +++----------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index fd05cdb2..91be2abe 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -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); diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index 18c6d2c5..b476a4e0 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -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; }