From ad0bebe29b5e5493d94371299abf4557dace0838 Mon Sep 17 00:00:00 2001
From: Elena Grassi <grassi.e@gmail.com>
Date: Mon, 16 Apr 2018 18:17:20 +0200
Subject: [PATCH] [piuma] opening clicked nearby entities

Should we exit the edit mode? $scope.$broadcast('exitEditMode') is not working 100% here.
---
 www/js/directives/flmap.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/www/js/directives/flmap.js b/www/js/directives/flmap.js
index 46df4751..dabf222f 100644
--- a/www/js/directives/flmap.js
+++ b/www/js/directives/flmap.js
@@ -827,8 +827,10 @@ angular.module('firstlife.directives').directive('flmap',function () {
                 });
 
                 $scope.open = function(id) {
-                    //@todo emit correct things
-                    console.log('Will navigate to', id);
+                    // should exit edit mode
+                    // $scope.$broadcast('exitEditMode');
+                    // this broadcast removes the pointer but not the map buttons for edit?
+                    $scope.$emit('wallClick',{id:id});
                 };
 
                 $scope.getLocation = function () {
-- 
GitLab