fix map and grid lines disappearing when zooming far out in huge maps
cosmetic changes to the previous 3 commits