$ 0 0 Added some checks to prevent an unhanled exception when removing a geografic layer. Also fixed a panning issue.