src/lib/create_supplementary_points.js
function processMultiGeometry() {
    const subType = type.replace(Constants.geojsonTypes.MULTI_PREFIX, '');
    coordinates.forEach((subCoordinates, index) => {
      const subFeature = {
        type: Constants.geojsonTypes.FEATURE,
        properties: geojson.properties,
        geometry: {
          type: subType,
          coordinates: subCoordinates
        }
      };
      supplementaryPoints = supplementaryPoints.concat(createSupplementaryPoints(subFeature, options, index));
    });
  }
function processMultiGeometry() {
    const subType = type.replace(Constants.geojsonTypes.MULTI_PREFIX, '');
    coordinates.forEach((subCoordinates, index) => {
      const subFeature = {
        type: Constants.geojsonTypes.FEATURE,
        properties: geojson.properties,
        geometry: {
          type: subType,
          coordinates: subCoordinates
        }
      };
      supplementaryPoints = supplementaryPoints.concat(createSupplementaryPoints(subFeature, options, index));
    });
  }
function processMultiGeometry ( ) { const subType = type . replace ( Constants . geojsonTypes . MULTI_PREFIX , '' ) ; coordinates . forEach ( ( subCoordinates , index ) => { const subFeature = { type : Constants . geojsonTypes . FEATURE , properties : geojson . properties , geometry : { type : subType , coordinates : subCoordinates } } ; supplementaryPoints = supplementaryPoints . concat ( createSupplementaryPoints ( subFeature , options , index ) ) ; } ) ; }
Split a multi-geometry into constituent geometries, and accumulate the supplementary points for each of those constituents
Split a multi - geometry into constituent geometries and accumulate the supplementary points for each of those constituents