-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Great lib the only problem I have so far is When zoomed the marker moves from its correct position. Thanks!
export const MarkerCard = (props: MarkerCardProps) => {
...
return (
<Marker
position={props.location}
size={[224, 112]}
riseOnHover
placement="bottom"
>
...
<MapContainer
className="h-screen w-full bg-gray-100"
// @ts-ignore
center={coord}
zoom={16}
scrollWheelZoom={false}>
<TileLayer
attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<HandleLocation />
<MarkerLayer>
{DUMMY.map((props, index) => (<MarkerCard key={props.id} {...props}/>))}
</MarkerLayer>
</MapContainer>
it seems that this problem is NextJS specific. PaulLeCam/react-leaflet#808 (comment) does not resolve the issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels