visgl / react-map-gl

React friendly API wrapper around MapboxGL JS
http://visgl.github.io/react-map-gl/
Other
7.88k stars 1.35k forks source link

Docs: Include `properties` in FeatureCollection example #2425

Open Johngeorgesample opened 3 months ago

Johngeorgesample commented 3 months ago

I tried copy/pasting the example for Native Mapbox Layers, but encountered a TypeScript error.

[tsserver 2741] [E] Property 'properties' is missing in type '{ type: "Feature"; geometry: { type: "Point"; coordinates: number[]; }; }' but required in type 'Feature<Geometry, GeoJsonProperties>'.

This PR addresses that error by adding properties to the object.