removed dead code from map layers