[gnome-maps] mapView: destroy old location on location update
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] mapView: destroy old location on location update
- Date: Wed, 28 Aug 2019 20:29:30 +0000 (UTC)
commit 42cb877cfe00100be45ff2acd24cffeef41b634c
Author: Valentin Blot <14005-vblot users noreply gitlab gnome org>
Date: Tue Aug 27 11:29:15 2019 +0200
mapView: destroy old location on location update
src/mapView.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/mapView.js b/src/mapView.js
index 5d030ac..3610272 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -476,6 +476,8 @@ var MapView = GObject.registerClass({
let place = Application.geoclue.place;
let previousSelected = this._userLocation && this._userLocation.selected;
+ if (this._userLocation)
+ this._userLocation.destroy();
this._userLocation = new UserLocationMarker.UserLocationMarker({ place: place,
mapView: this });
this._userLocationLayer.remove_all();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]