Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 55x 128x 128x 128x | import { useGetFeatureFlagValues } from "FeatureFlags/useGetFeatureFlagValues";
import customMarkerIcon from "@assets/images/Map-Pin-Marker.png";
export const useMarkerGoogleMapsProps = () => {
const { isGoogleMapsAdvancedMarkersEnabled } = useGetFeatureFlagValues();
const markerGoogleMapsProps = isGoogleMapsAdvancedMarkersEnabled
? {
markerImage: <img src={customMarkerIcon} />,
}
: {
markerProps: {
icon: {
url: customMarkerIcon, // Marker icon must be PNG
scale: 1,
},
},
};
return markerGoogleMapsProps;
};
|