/* eslint-disable import/no-absolute-path */ // Leaflet is a browser library; the workaround import fakes the bits of `window` // it touches at load time so it can also run on the server. Kept apart from // subsUnionLogic so that module (and its tests) stay free of that dependency. import './leaflet-workaround'; import L from 'leaflet'; const unionBounds = union => (union === null ? null : L.geoJSON(union).getBounds()); export default unionBounds;