refactoring
keep layer on/off state serverside, restore when map initialized