First draft of new tilelayer switcher (cf #56)