Skip to content

Commit

Permalink
fix(datagrid): hide zsd alert after layer removal
Browse files Browse the repository at this point in the history
remove zoom scale dependency notification after layer is removed

Closes #9939
  • Loading branch information
Spencer Wahl committed May 12, 2015
1 parent 79fdf66 commit 2635502
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/RAMP/Modules/datagrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,11 @@ define([
}
});

topic.subscribe(EventManager.LayerLoader.REMOVE_LAYER, function () {
//layer has been removed, notify the ui incase the layer was scale dependent
ui.updateNotice();
});

// update notice after zoom end event since some of the scale-dependent layers might end up off scale
topic.subscribe(EventManager.Map.ZOOM_END, function () {
ui.updateNotice();
Expand Down

0 comments on commit 2635502

Please sign in to comment.