diff --git a/resources/js/Helpers/useMap.js b/resources/js/Helpers/useMap.js index b337590..7d51abf 100644 --- a/resources/js/Helpers/useMap.js +++ b/resources/js/Helpers/useMap.js @@ -71,9 +71,7 @@ export const closePanel = (leafletObject) => { const coordinates = getCoordinatesParameter(props.center, props.zoom); router.visit(route('front.map.index', { coordinates }), { - headers: { - 'Map-Bounds': props.bounds, - }, + headers: headers(leafletObject), }); };