Google map with custom markers

This commit is contained in:
2025-07-23 17:57:58 +05:00
parent 0b9741e90f
commit 6a415ec165
10 changed files with 180 additions and 22 deletions
+21
View File
@@ -0,0 +1,21 @@
import { AdvancedMarker, Pin } from "@vis.gl/react-google-maps";
interface IGMapMarker {
key: string;
location: google.maps.LatLngLiteral;
children: React.ReactNode;
}
export default function MapMarker({ key, location, children }: IGMapMarker) {
return (
<AdvancedMarker key={key} position={location}>
<Pin
background={"transparent"}
glyphColor={"transparent"}
borderColor={"transparent"}
>
{children}
</Pin>
</AdvancedMarker>
);
}