Add map boundary calculation methods to UIMap.