[gnome-maps/wip/mlundblad/remove-contacts: 2/17] mapView: Remove support for showing contacts
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/remove-contacts: 2/17] mapView: Remove support for showing contacts
- Date: Thu, 23 Jun 2022 21:15:11 +0000 (UTC)
commit 6f546c476591b2bf9ef348fc1ddd632c5cc7a2ab
Author: Marcus Lundblad <ml dfupdate se>
Date: Wed Jun 22 22:10:34 2022 +0200
mapView: Remove support for showing contacts
src/mapView.js | 18 ------------------
1 file changed, 18 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 77dde247..b02eeda4 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -33,7 +33,6 @@ import GnomeMaps from 'gi://GnomeMaps';
import {Application} from './application.js';
import {BoundingBox} from './boundingBox.js';
-import {ContactPlace} from './contactPlace.js';
import * as Color from './color.js';
import * as Geoclue from './geoclue.js';
import {GeoJSONShapeLayer} from './geoJSONShapeLayer.js';
@@ -689,23 +688,6 @@ export class MapView extends GtkChamplain.Embed {
this._turnPointMarker.goTo();
}
- showContact(contact) {
- let places = contact.get_places();
- if (places.length === 0)
- return;
-
- this._placeLayer.remove_all();
- places.forEach((p) => {
- let place = new ContactPlace({ place: p,
- contact: contact });
- let marker = new PlaceMarker({ place: place,
- mapView: this });
- this._placeLayer.add_marker(marker);
- });
-
- new MapWalker(places[0], this).goTo(true);
- }
-
_showStoredRoute(stored) {
let query = Application.routeQuery;
let route = Application.routingDelegator.graphHopper.route;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]