import olMap from 'ol/Map.js';
import { transform } from 'ol/proj';
import { transformExtent } from 'ol/proj';
import View from 'ol/View';
import ScaleBar from 'ol/control/ScaleLine';

const createResourceGroup = (items) => {
   let groups = {}

   for (let i = 0; i < items.length; i++) {
      let id = items[i].id;
      
      if(id) {
         groups[items[i].id] = {
            groupDescription: items[i]["group description"],
            groupName: items[i]["group name"]
         }
      }
   }

   return groups;
}

export { createResourceGroup };