I used deck.gl@^6.4.7 and react-map-gl@^5.0.7, and I had placed a Marker with an icon children that was listening on click events. When I updated the deck.gl to version 7.1.10, the icon's click events stopped working.
Do you have any idea how to solve this?
<DeckGL
initialViewState={{
longitude: liveMapZoom.lng,
latitude: liveMapZoom.lat,
zoom: 12,
bearing: 0,
pitch: 0
}}
viewState={viewState}
onClick={(info, event) => {
console.log("info", info);
console.log("event", event);
}}
onViewStateChange={this._onViewStateChange}
controller={{ type: MapController, dragRotate: false }}
layers={[
layerCars(data)
]}
>
<ReactMapGL
mapStyle={"mapbox://styles/mapbox/streets-v9"}
mapboxApiAccessToken={TOKEN}
>
<Marker
key={key}
latitude={coordinates[1]}
longitude={coordinates[0]}
>
<img
alt={name}
src={iconUrl}
onClick={event => {
console.log("hey");
}}
/>
</Marker>
</ReactMapGL>
</DeckGL>