"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("lodash/isEqual"),r=require("../../../../stores/viewport-store/useViewportStore.js"),o=require("../../../../utils/tile-math.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=u(t),s={type:"FeatureCollection",features:[]};exports.useLoadingTilesGeoJSON=function(){var t=r.useViewportStore((function(e){return e.bounds?o.estimateTileCount(e.bounds)>o.MAX_VIEWPORT_TILES_FOR_FETCH?[]:o.getTilesForViewport(e.bounds).filter((function(t){var r;return"loaded"!==(null===(r=e.tiles.get(t))||void 0===r?void 0:r.status)})):[]}),i.default);return e.useMemo((function(){return 0===t.length?s:o.tilesToGeoJSON(t)}),[t])};
//# sourceMappingURL=useLoadingTilesGeoJSON.js.map
