[[ Layers ]] Split out layer attribute calculations and layer rendering to tilecache