Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tordans opened this issue Oct 14, 2023 · 0 comments
Open
Labels

Comments

@tordans
Copy link
Contributor

tordans commented Oct 14, 2023

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

@tordans tordans added the bug label Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant