Commit 5b85b0fc authored by Benoit Lavenier's avatar Benoit Lavenier

[fix] Wot Map: disable bound filtering

parent 9cec083e
......@@ -82,6 +82,7 @@ function MapWotViewController($scope, $filter, $templateCache, $interpolate, $ti
};
$scope.loading = true;
$scope.loadingMarker = true;
$scope.mapId = 'map-wot-' + $scope.$id;
$scope.map = MapUtils.map({
......@@ -130,8 +131,6 @@ function MapWotViewController($scope, $filter, $templateCache, $interpolate, $ti
if ($scope.loading) {
// $translate.get('')
//$ionicBackdrop.retain();
UIUtils.loading.show({
noBackdrop: true // avoid a too long release
});
......@@ -308,8 +307,9 @@ function MapWotViewController($scope, $filter, $templateCache, $interpolate, $ti
// add bounding box
if ($scope.map.bounds) {
options.bounds = angular.copy($scope.map.bounds);
delete options.bounds.options;
// FIXME - this is not working well
//options.bounds = angular.copy($scope.map.bounds);
//delete options.bounds.options;
}
// Load wot data, from service
......@@ -338,7 +338,7 @@ function MapWotViewController($scope, $filter, $templateCache, $interpolate, $ti
lat: hit.geoPoint.lat,
lng: hit.geoPoint.lon,
getMessageScope: function () {
$scope.loading = true;
$scope.loadingMarker = true;
$scope.$applyAsync(function() {
$scope.formData = {
pubkey: hit.pubkey,
......@@ -346,7 +346,7 @@ function MapWotViewController($scope, $filter, $templateCache, $interpolate, $ti
name: hit.name,
profile: hit
};
$scope.loading = false;
$scope.loadingMarker = false;
});
return $scope;
},
......
<div class="item no-border no-padding item-avatar "
ng-if="loading">
ng-if="loadingMarker">
<i class="item-image icon ion-person"></i>
......@@ -18,7 +18,7 @@
</div>
<a class="item no-border no-padding item-avatar ink animate-fade-in animate-show-hide ng-hide"
ng-show="!loading"
ng-show="!loadingMarker"
ui-sref="app.wot_identity({pubkey: formData.pubkey, uid: formData.uid})">
<i ng-if="formData.avatar" class="item-image avatar" style="background-image: url({{::formData.avatar.src}})"></i>
......@@ -52,7 +52,7 @@
ng-class="{'ion-arrow-down-b': !showDescription, 'ion-arrow-up-b': showDescription}"
ng-click="showDescription=!showDescription;"
title="{{'PROFILE.DESCRIPTION'|translate}}"
ng-show="!loading && formData.profile.description">
ng-show="!loadingMarker && formData.profile.description">
&nbsp;
</a>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment