use common addWMSLayer function