passing map to layers rendering