mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 05:49:16 +02:00
remove footer "features hidden" warning in editOff
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user