Skip to content
Snippets Groups Projects
Commit 8b9f3948 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Map profile: set map id, to avoid error when navigate on many map views

parent 4413ef3a
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ angular.module('cesium.es.profile.controllers', ['cesium.es.services'])
controller: 'ESViewEditProfileCtrl'
}
},
cache: false,
data: {
auth: true
}
......
<ion-item id="doc-{{::doc.id}}"
class="item item-document item-icon-left ink {{::ionItemClass}} no-padding-top no-padding-bottom"
ng-class="{{::ionItemClass}}"
ng-click="selectDocument(doc)">
<i class="icon ion-document stable" ng-if=":rebind:!doc.avatar"></i>
......
......@@ -33,6 +33,7 @@ angular.module('cesium.map.user.controllers', ['cesium.services', 'cesium.map.se
}
});
$scope.loading = true;
$scope.mapId = 'map-profile-' + $scope.$id;
$scope.enter = function(e, state) {
......
<div class="item no-padding {{ionItemClass}}" ng-if="formData.geoPoint && formData.geoPoint.lat && formData.geoPoint.lon">
<leaflet height="250px"
<leaflet id="{{::mapId}}"
height="250px"
center="map.center"
markers="map.markers"
defaults="map.defaults">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment