Map Editor Optimisations

Optimised map editor so when changing scale it is much quicker.