@fabriquerdemain/map-react 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11740,6 +11740,15 @@
|
|
|
11740
11740
|
);
|
|
11741
11741
|
(_a = mapRef.current) == null ? void 0 : _a.fitBounds(group.getBounds(), { padding: [50, 50] });
|
|
11742
11742
|
hasFitBoundsRef.current = true;
|
|
11743
|
+
setTimeout(() => {
|
|
11744
|
+
if (mapRef.current) {
|
|
11745
|
+
const center = mapRef.current.getCenter();
|
|
11746
|
+
const shouldUseIgn = isInFrance(center.lat, center.lng);
|
|
11747
|
+
if (!shouldUseIgn) {
|
|
11748
|
+
setCurrentTileSource("osm");
|
|
11749
|
+
}
|
|
11750
|
+
}
|
|
11751
|
+
}, 100);
|
|
11743
11752
|
}
|
|
11744
11753
|
}, [
|
|
11745
11754
|
markers,
|