$.getJSON("/map/data/bathrooms", function(bathrooms) { //getting the json data
  bathrooms.forEach(function(bathroom) {
    try {
      var geoJSON = JSON.parse(bathroom.geo_data);
      bathroomLayer.addData(geoJSON); //adding the json data to the building layer