@selfcommunity/react-ui 0.11.0-mui7.27 → 0.11.0-mui7.29

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.
@@ -11,10 +11,16 @@ function EventMap(props) {
11
11
  if (!isLoaded) {
12
12
  return null;
13
13
  }
14
- return ((0, jsx_runtime_1.jsx)(react_google_maps_1.Map, Object.assign({ className: className, center: {
14
+ /**
15
+ * Valid mapId for AdvancedMarker
16
+ * https://visgl.github.io/react-google-maps/docs/guides/ssr-and-frameworks
17
+ * https://developers.google.com/maps/deprecations
18
+ * https://developers.google.com/maps/documentation/javascript/advanced-markers/migration
19
+ */
20
+ return ((0, jsx_runtime_1.jsx)(react_google_maps_1.Map, Object.assign({ className: className, mapId: "aef14f6caa750c5616b23934", defaultCenter: {
15
21
  lat: event.geolocation_lat,
16
22
  lng: event.geolocation_lng
17
- }, zoom: 15, fullscreenControl: false, mapTypeControl: false, streetViewControl: false, zoomControl: false }, { children: (0, jsx_runtime_1.jsx)(react_google_maps_1.Marker, { position: {
23
+ }, zoom: 15, gestureHandling: "greedy", fullscreenControl: false, mapTypeControl: false, streetViewControl: false, zoomControl: false }, { children: (0, jsx_runtime_1.jsx)(react_google_maps_1.AdvancedMarker, { position: {
18
24
  lat: event.geolocation_lat,
19
25
  lng: event.geolocation_lng
20
26
  } }) })));
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useSCGoogleApiLoader } from '@selfcommunity/react-core';
3
- import { Map, Marker } from '@vis.gl/react-google-maps';
3
+ import { Map, AdvancedMarker } from '@vis.gl/react-google-maps';
4
4
  export default function EventMap(props) {
5
5
  // PROPS
6
6
  const { event, className } = props;
@@ -9,10 +9,16 @@ export default function EventMap(props) {
9
9
  if (!isLoaded) {
10
10
  return null;
11
11
  }
12
- return (_jsx(Map, Object.assign({ className: className, center: {
12
+ /**
13
+ * Valid mapId for AdvancedMarker
14
+ * https://visgl.github.io/react-google-maps/docs/guides/ssr-and-frameworks
15
+ * https://developers.google.com/maps/deprecations
16
+ * https://developers.google.com/maps/documentation/javascript/advanced-markers/migration
17
+ */
18
+ return (_jsx(Map, Object.assign({ className: className, mapId: "aef14f6caa750c5616b23934", defaultCenter: {
13
19
  lat: event.geolocation_lat,
14
20
  lng: event.geolocation_lng
15
- }, zoom: 15, fullscreenControl: false, mapTypeControl: false, streetViewControl: false, zoomControl: false }, { children: _jsx(Marker, { position: {
21
+ }, zoom: 15, gestureHandling: "greedy", fullscreenControl: false, mapTypeControl: false, streetViewControl: false, zoomControl: false }, { children: _jsx(AdvancedMarker, { position: {
16
22
  lat: event.geolocation_lat,
17
23
  lng: event.geolocation_lng
18
24
  } }) })));