build and format
This commit is contained in:
@@ -71,7 +71,7 @@ export default function LocationMarker({ location, onDragEnd }: Props) {
|
||||
className="absolute -bottom-4.5 z-[-1] size-1.5 rounded-full bg-black shadow-md"
|
||||
/>
|
||||
)}
|
||||
<MarkerIcon className="text-neo-aqua size-8" />
|
||||
<MarkerIcon className="text-neo-aqua size-8" />
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
</Marker>
|
||||
|
||||
@@ -1,16 +1,19 @@
|
||||
"use client"
|
||||
"use client";
|
||||
import MainMap from "@/components/MainMap";
|
||||
import LocationMarker from "./LocationMarker";
|
||||
|
||||
const LocationModal = () => {
|
||||
return (
|
||||
<div style={{ width: "100%", height: "100dvh", position: "relative" }}>
|
||||
<MainMap>
|
||||
<LocationMarker location={{lat : 36.541, lng : 54.56}} onDragEnd={()=> {
|
||||
console.log("hello")}} />
|
||||
</MainMap>
|
||||
<MainMap>
|
||||
<LocationMarker
|
||||
location={{ lat: 36.541, lng: 54.56 }}
|
||||
onDragEnd={() => {
|
||||
console.log("hello");
|
||||
}}
|
||||
/>
|
||||
</MainMap>
|
||||
</div>
|
||||
|
||||
);
|
||||
};
|
||||
export default LocationModal;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"use client"
|
||||
"use client";
|
||||
import { Map, MapLayerMouseEvent } from "@vis.gl/react-maplibre";
|
||||
import { ReactNode, useMemo } from "react";
|
||||
import maplibregl from "maplibre-gl";
|
||||
|
||||
Reference in New Issue
Block a user