Formatting and setmap

Changed ctaLayer.setMap to layer.setMap to reflect earlier changes