Added logic to limit the number of markers added to the location map.