added support for layer selector in named maps