some more map tweaks

made map layers global vars