| 211 | } |
| 212 | |
| 213 | void showLayer(const cmd::ArgumentList& args) |
| 214 | { |
| 215 | if (args.size() != 1) |
| 216 | { |
| 217 | rError() << "Usage: " << COMMAND_SHOWLAYER << " <LayerID> " << std::endl; |
| 218 | return; |
| 219 | } |
| 220 | |
| 221 | DoWithMapLayerManager([&](ILayerManager& manager) |
| 222 | { |
| 223 | manager.setLayerVisibility(args[0].getInt(), true); |
| 224 | }); |
| 225 | } |
| 226 | |
| 227 | void hideLayer(const cmd::ArgumentList& args) |
| 228 | { |
nothing calls this directly
no test coverage detected