react-map-gl icon indicating copy to clipboard operation
react-map-gl copied to clipboard

Docs: Include `properties` in FeatureCollection example

Open Johngeorgesample opened this issue 1 year ago • 0 comments

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.

Johngeorgesample avatar Aug 16 '24 12:08 Johngeorgesample