mapping-component-package-jp 0.1.53 → 0.1.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapping-component-package-jp",
3
- "version": "0.1.53",
3
+ "version": "0.1.55",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -21,7 +21,7 @@ export type jpMapType = {
21
21
 
22
22
  interface JPMapComponentProps {
23
23
  gmAPIkey: string,
24
- mapContainerId?: string;
24
+ id?: string;
25
25
  jpMap: (jpMap: jpMapType) => void,
26
26
  };
27
27
 
@@ -36,7 +36,7 @@ const mapOptions = {
36
36
  };
37
37
 
38
38
 
39
- const JPMapComponent: React.FC<JPMapComponentProps> = ({ gmAPIkey, mapContainerId, jpMap }) => {
39
+ const JPMapComponent: React.FC<JPMapComponentProps> = ({ gmAPIkey, id, jpMap }) => {
40
40
 
41
41
  const [mapInstance, setMapInstance] = useState<google.maps.Map | null>(null);
42
42
 
@@ -74,7 +74,7 @@ const JPMapComponent: React.FC<JPMapComponentProps> = ({ gmAPIkey, mapContainerI
74
74
  return isLoaded ? (
75
75
  <GoogleMap
76
76
  mapContainerStyle={containerStyle}
77
- {...(mapContainerId ? { mapContainerId } : {})}
77
+ id={id}
78
78
  center={center}
79
79
  zoom={5}
80
80
  options={mapOptions}
@@ -31,7 +31,7 @@ export type jpMapType = {
31
31
 
32
32
  interface JPMapComponentNewProps {
33
33
  gmAPIkey: string;
34
- mapContainerId?: string;
34
+ id?: string;
35
35
  // The callback to pass the initialized map data back up to the parent App
36
36
  jpMap: (jpMap: jpMapType) => void;
37
37
  }
@@ -65,7 +65,7 @@ const MapHandlerComponent: React.FC<{ jpMap: JPMapComponentNewProps['jpMap'] }>
65
65
 
66
66
 
67
67
  // --- 2. The Main Map Component: Sets up Provider and Map ---
68
- const JPMapComponentNew: React.FC<JPMapComponentNewProps> = ({ gmAPIkey, mapContainerId, jpMap }) => {
68
+ const JPMapComponentNew: React.FC<JPMapComponentNewProps> = ({ gmAPIkey, id, jpMap }) => {
69
69
 
70
70
  return (
71
71
  // The APIProvider handles key, script loading, and libraries
@@ -75,7 +75,7 @@ const JPMapComponentNew: React.FC<JPMapComponentNewProps> = ({ gmAPIkey, mapCont
75
75
  >
76
76
  <Map
77
77
  mapId={MAP_ID}
78
- {...(mapContainerId ? { mapContainerId } : {})}
78
+ id={id}
79
79
  style={containerStyle}
80
80
  center={center}
81
81
  zoom={5}
@@ -185,6 +185,7 @@ export class MapOverlayManager {
185
185
  tipObj.innerHTML = data;
186
186
  tipObj.style.top = event.domEvent.clientY + window.scrollY + ttOffset.y + "px";
187
187
  tipObj.style.left = event.domEvent.clientX + window.scrollX + ttOffset.x + "px";
188
+ tipObj.style.zIndex = 20000;
188
189
  document.body.appendChild(tipObj);
189
190
  }
190
191
  }
@@ -196,6 +197,7 @@ export class MapOverlayManager {
196
197
  tipObj.innerHTML = data;
197
198
  tipObj.style.top = event.clientY + window.scrollY + ttOffset.y + "px";
198
199
  tipObj.style.left = event.clientX + window.scrollX + ttOffset.x + "px";
200
+ tipObj.style.zIndex = 20000;
199
201
  document.body.appendChild(tipObj);
200
202
  }
201
203
  }