@mcurros2/microm 1.1.157-0 → 1.1.159-0
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.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36804,6 +36804,7 @@ function $b737d4021abcf81e$export$bdaabecc63f2fdb2({ mapOptions: mapOptions, chi
|
|
|
36804
36804
|
(0, $b4te3$react.useEffect)(()=>{
|
|
36805
36805
|
if (map === null) {
|
|
36806
36806
|
if (!containerRef.current) throw new Error("Container required.");
|
|
36807
|
+
if (mapOptions && mapOptions.center && (!mapOptions.center.lat || !mapOptions.center.lng)) mapOptions.center = undefined;
|
|
36807
36808
|
const initMap = new google.maps.Map(containerRef.current, mapOptions);
|
|
36808
36809
|
setMap(initMap);
|
|
36809
36810
|
}
|
|
@@ -36812,6 +36813,7 @@ function $b737d4021abcf81e$export$bdaabecc63f2fdb2({ mapOptions: mapOptions, chi
|
|
|
36812
36813
|
mapOptions
|
|
36813
36814
|
]);
|
|
36814
36815
|
(0, $b4te3$react.useEffect)(()=>{
|
|
36816
|
+
if (mapOptions && mapOptions.center && (!mapOptions.center.lat || !mapOptions.center.lng)) mapOptions.center = undefined;
|
|
36815
36817
|
if (map) map.setOptions(mapOptions);
|
|
36816
36818
|
}, [
|
|
36817
36819
|
map,
|
|
@@ -37684,6 +37686,7 @@ function $f45cc5d831dfee4e$export$f8311e03dfc5ec83({ mapOptions: mapOptions, Ini
|
|
|
37684
37686
|
// Map creation
|
|
37685
37687
|
(0, $b4te3$react.useEffect)(()=>{
|
|
37686
37688
|
if (map === null && containerRef.current) {
|
|
37689
|
+
if (mapOptions && mapOptions.center && (!mapOptions.center.lat || !mapOptions.center.lng)) mapOptions.center = undefined;
|
|
37687
37690
|
const initMap = new google.maps.Map(containerRef.current, mapOptions);
|
|
37688
37691
|
setMap(initMap);
|
|
37689
37692
|
}
|
|
@@ -37693,6 +37696,7 @@ function $f45cc5d831dfee4e$export$f8311e03dfc5ec83({ mapOptions: mapOptions, Ini
|
|
|
37693
37696
|
]);
|
|
37694
37697
|
// Map options update
|
|
37695
37698
|
(0, $b4te3$react.useEffect)(()=>{
|
|
37699
|
+
if (mapOptions && mapOptions.center && (!mapOptions.center.lat || !mapOptions.center.lng)) mapOptions.center = undefined;
|
|
37696
37700
|
if (map) map.setOptions(mapOptions);
|
|
37697
37701
|
}, [
|
|
37698
37702
|
map,
|