if (defaultTable.getSelectionModel().isSelectedIndex(i)) {
if (!mapRectangles.containsKey(i)) {
// Add new map rectangle
Coordinate topLeft = new Coordinate(bounds.getMaxLat(), bounds.getMinLon());
Coordinate bottomRight = new Coordinate(bounds.getMinLat(), bounds.getMaxLon());
MapRectangle rectangle = new MapRectangleImpl(topLeft, bottomRight);
mapRectangles.put(i, rectangle);
defaultMap.addMapRectangle(rectangle);
}
} else if (mapRectangles.containsKey(i)) {
// Remove previously drawn map rectangle