I'm wanting to zoom a mapBox map to a specific group of markers based on a shared property.
I have a map with a bunch of markers, and from that group I've built two arrays for two separate regions like so:
var regionOne = [], regionTwo = [];
map.markerLayer.on('layeradd', function(e){
  var marker = e.layer,
      feature = marker.feature;
   switch (feature.properties.region) {
      case 'region-one':
        regionOne.push(feature);
        break;
      case 'region-two':
        regionTwo.push(feature);
        break;
    }
});
but I am stuck on next steps. I need to convert the array of marker objects to a featureGroup (as described here and documented in the leaflet docs) so I can apply the getBounds() method but just running
var regionGroup = new L.featureGroup(regionOne);
throws an error, even though regionOne is a valid array of mabox marker objects.