@mcurros2/microm 1.1.158-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 +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36797,8 +36797,6 @@ $parcel$export(module.exports, "useCreateGoogleMap", function () { return $b737d
|
|
|
36797
36797
|
var $32aKS = parcelRequire("32aKS");
|
|
36798
36798
|
|
|
36799
36799
|
var $f1AFh = parcelRequire("f1AFh");
|
|
36800
|
-
|
|
36801
|
-
var $jQiQb = parcelRequire("jQiQb");
|
|
36802
36800
|
function $b737d4021abcf81e$export$bdaabecc63f2fdb2({ mapOptions: mapOptions, children: children, setInfoWindowContent: setInfoWindowContent, infoWindowContentRef: infoWindowContentRef }) {
|
|
36803
36801
|
const containerRef = (0, $b4te3$react.useRef)(null);
|
|
36804
36802
|
const [map, setMap] = (0, $b4te3$react.useState)(null);
|
|
@@ -36806,7 +36804,7 @@ function $b737d4021abcf81e$export$bdaabecc63f2fdb2({ mapOptions: mapOptions, chi
|
|
|
36806
36804
|
(0, $b4te3$react.useEffect)(()=>{
|
|
36807
36805
|
if (map === null) {
|
|
36808
36806
|
if (!containerRef.current) throw new Error("Container required.");
|
|
36809
|
-
if (mapOptions && !mapOptions.center) mapOptions.center =
|
|
36807
|
+
if (mapOptions && mapOptions.center && (!mapOptions.center.lat || !mapOptions.center.lng)) mapOptions.center = undefined;
|
|
36810
36808
|
const initMap = new google.maps.Map(containerRef.current, mapOptions);
|
|
36811
36809
|
setMap(initMap);
|
|
36812
36810
|
}
|
|
@@ -36815,6 +36813,7 @@ function $b737d4021abcf81e$export$bdaabecc63f2fdb2({ mapOptions: mapOptions, chi
|
|
|
36815
36813
|
mapOptions
|
|
36816
36814
|
]);
|
|
36817
36815
|
(0, $b4te3$react.useEffect)(()=>{
|
|
36816
|
+
if (mapOptions && mapOptions.center && (!mapOptions.center.lat || !mapOptions.center.lng)) mapOptions.center = undefined;
|
|
36818
36817
|
if (map) map.setOptions(mapOptions);
|
|
36819
36818
|
}, [
|
|
36820
36819
|
map,
|
|
@@ -37544,6 +37543,8 @@ function $477f8ab014db96d9$export$2328eff9e1bf84ef(props) {
|
|
|
37544
37543
|
|
|
37545
37544
|
});
|
|
37546
37545
|
|
|
37546
|
+
|
|
37547
|
+
|
|
37547
37548
|
parcelRegister("jQiQb", function(module, exports) {
|
|
37548
37549
|
|
|
37549
37550
|
$parcel$export(module.exports, "DEFAULT_MAP_CENTER", function () { return $fcb291f733171619$export$8cd0ab387c59a110; });
|
|
@@ -37564,8 +37565,6 @@ const $fcb291f733171619$export$67a59ec0222ad436 = {
|
|
|
37564
37565
|
|
|
37565
37566
|
});
|
|
37566
37567
|
|
|
37567
|
-
|
|
37568
|
-
|
|
37569
37568
|
parcelRegister("cBazH", function(module, exports) {
|
|
37570
37569
|
|
|
37571
37570
|
$parcel$export(module.exports, "useGoogleAddressMappingRules", function () { return $d69768ae288c9561$export$fa48517122fad011; });
|
|
@@ -37687,6 +37686,7 @@ function $f45cc5d831dfee4e$export$f8311e03dfc5ec83({ mapOptions: mapOptions, Ini
|
|
|
37687
37686
|
// Map creation
|
|
37688
37687
|
(0, $b4te3$react.useEffect)(()=>{
|
|
37689
37688
|
if (map === null && containerRef.current) {
|
|
37689
|
+
if (mapOptions && mapOptions.center && (!mapOptions.center.lat || !mapOptions.center.lng)) mapOptions.center = undefined;
|
|
37690
37690
|
const initMap = new google.maps.Map(containerRef.current, mapOptions);
|
|
37691
37691
|
setMap(initMap);
|
|
37692
37692
|
}
|
|
@@ -37696,6 +37696,7 @@ function $f45cc5d831dfee4e$export$f8311e03dfc5ec83({ mapOptions: mapOptions, Ini
|
|
|
37696
37696
|
]);
|
|
37697
37697
|
// Map options update
|
|
37698
37698
|
(0, $b4te3$react.useEffect)(()=>{
|
|
37699
|
+
if (mapOptions && mapOptions.center && (!mapOptions.center.lat || !mapOptions.center.lng)) mapOptions.center = undefined;
|
|
37699
37700
|
if (map) map.setOptions(mapOptions);
|
|
37700
37701
|
}, [
|
|
37701
37702
|
map,
|