update mapbbcode, fix disappearance of OSM layer in editor window