Correctly reverse map/layers endpoint