visgl/react-map-gl

[Bug] Type `MapLayerMouseEvent` for `onClick` on `<Map>` does not match data

tordans opened this issue · 1 comments

Description

The type I get in VS Code is (property) features?: Feature<Geometry, GeoJsonProperties>[] | undefined
image

(I include Map from react-map-gl/maplibre.)

However, the generic GeoJsonProperties is not quite right, it does not type the special properties like source.

I don't understand where this information is lost …

Expected Behavior

The react map gl types should match the Maplibre types.

Steps to Reproduce

Environment

  • Framework version: "react-map-gl": "7.1.6",
  • Map library: "maplibre-gl": "^2.4.0",

Logs

No response

I am using "react-map-gl": "7.1.7" ATM and this issue is not present anymore. => Closing