Skip to content
Snippets Groups Projects
Commit 8451ba2f authored by Piotr Gawron's avatar Piotr Gawron
Browse files

don' tcrash app when there is a problem with fetching project data

parent d3f51ec8
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!199Resolve "[MIN-321] form for reporting errors in minerva"
......@@ -46,7 +46,7 @@ export const useOlMapTileLayer = (): BaseLayer => {
url: sourceUrl,
maxZoom: mapSize.maxZoom,
minZoom: mapSize.minZoom,
tileSize: mapSize.tileSize,
tileSize: Math.max(mapSize.tileSize, 1),
wrapX: OPTIONS.wrapXInTileLayer,
}),
[sourceUrl, mapSize.maxZoom, mapSize.minZoom, mapSize.tileSize],
......
......@@ -20,13 +20,7 @@ type UseOlMap = (input?: UseOlMapInput) => UseOlMapOutput;
export const useOlMap: UseOlMap = ({ target } = {}) => {
const mapRef = React.useRef<null | HTMLDivElement>(null);
const { mapInstance, handleSetMapInstance } = useMapInstance();
// eslint-disable-next-line no-console
console.log('!!!!!!!!!!');
// eslint-disable-next-line no-console
console.log(mapInstance);
const view = useOlMapView({ mapInstance });
// eslint-disable-next-line no-console
console.log(view);
useOlMapLayers({ mapInstance });
useOlMapListeners({ view, mapInstance });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment