passing map to layers rendering

oh good call dude. maybe we have a maptypes/ directory for maptype stuff? maybe?