Skip to content

Commit

Permalink
Docs: Include properties in FeatureCollection example (#2425)
Browse files Browse the repository at this point in the history
* inlude `properties` in example for TS

---------

Co-authored-by: Chris Gervang <[email protected]>
  • Loading branch information
Johngeorgesample and chrisgervang authored Dec 13, 2024
1 parent 92706b7 commit cec6970
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/get-started/adding-custom-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ import type {FeatureCollection} from 'geojson';
const geojson: FeatureCollection = {
type: 'FeatureCollection',
features: [
{type: 'Feature', geometry: {type: 'Point', coordinates: [-122.4, 37.8]}}
{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [-122.4, 37.8]
},
properties: {title: '915 Front Street, San Francisco, California'}
}
]
};

Expand Down

0 comments on commit cec6970

Please sign in to comment.