I cant get onClick to work on a Marker with children.
<Marker
onClick={() => console.log('marker')}
key={route.journeyNumber}
anchor={[Number.parseFloat(route.latLon.latitude), Number.parseFloat(route.latLon.longitude)]}>
<div onClick={() => console.log('marker child')} className='bg-white'>
custom icon
</div>
</Marker>
Neither marker or marker children gets logged. If I remove the children then onClick works on the marker. What am I doing wrong?
I cant get onClick to work on a Marker with children.
Neither marker or marker children gets logged. If I remove the children then onClick works on the marker. What am I doing wrong?