adding wms layer resource
fixing support for adding layers to maps