A tiny wrapper for react-leaflets Marker component that allows you to use a React component as a marker, with working state, handlers, and access to parent contexts.
i got this error Expected marker with id 'marker-:r9:' to be rendered, but none was found. ```typescript import { Marker as LeafletMarker } from '@adamscybot/react-leaflet-component-marker' import { useRouter } from 'next/router' import { StyledPin } from './styles' const StyledMarker = ({ uid }) => { const router = useRouter() const goToRoute = () => { router.push(`/locations/${uid}`) } return ( <> <StyledPin onClick={goToRoute}> </StyledPin> </> ) } interface CustomMarkerProps { id: string uid: string lng: number lat: number } const Marker: React.FC<CustomMarkerProps> = ({ lng, lat, ...rest }) => { return ( <LeafletMarker icon={<StyledMarker {...rest} />} position={[lat, lng]} /> ) } export default Marker ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by fluse and has received 3 comments.