Skip to content

Commit

Permalink
feat(layer-selector-ui): remove metadata control from user-added layers
Browse files Browse the repository at this point in the history
User-added layer don't have any metadata to begin with, hence the link is useless.
  • Loading branch information
AleksueiR committed Mar 11, 2015
1 parent c7ae0da commit de8973b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/RAMP/Modules/filterManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ define([
stateMatrix: LayerItem.getStateMatrixTemplate()
};
LayerItem.addStateMatrixPart(options.stateMatrix, "notices", "user", true);
LayerItem.removeStateMatrixPart(options.stateMatrix, "controls", LayerItem.controls.METADATA);
}

newLayer = layerGroup.addLayerItem(layerConfig, options);
Expand Down

0 comments on commit de8973b

Please sign in to comment.