remove footer "features hidden" warning in editOff

This commit is contained in:
Bryan Housel
2014-11-06 00:33:45 -05:00
parent ace44d2e7d
commit 0d6d4b3d24
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -238,6 +238,11 @@ iD.Features = function(context) {
}
};
features.resetStats = function() {
_.each(feature, function(f) { f.count = 0; });
dispatch.change();
};
features.gatherStats = function(d, resolver, dimensions) {
var needsRedraw = false,
currHidden;
+4 -1
View File
@@ -138,11 +138,14 @@ iD.Map = function(context) {
function editOff() {
var mode = context.mode();
context.features().resetStats();
surface.selectAll('.layer *').remove();
dispatch.drawn({full: true});
if (!(mode && mode.id === 'browse')) {
context.enter(iD.modes.Browse(context));
}
dispatch.drawn({full: true});
}
function zoomPan() {