Skip to content

Commit cec6970

Browse files
Docs: Include properties in FeatureCollection example (#2425)
* inlude `properties` in example for TS --------- Co-authored-by: Chris Gervang <[email protected]>
1 parent 92706b7 commit cec6970

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/get-started/adding-custom-data.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ import type {FeatureCollection} from 'geojson';
1313
const geojson: FeatureCollection = {
1414
type: 'FeatureCollection',
1515
features: [
16-
{type: 'Feature', geometry: {type: 'Point', coordinates: [-122.4, 37.8]}}
16+
{
17+
type: 'Feature',
18+
geometry: {
19+
type: 'Point',
20+
coordinates: [-122.4, 37.8]
21+
},
22+
properties: {title: '915 Front Street, San Francisco, California'}
23+
}
1724
]
1825
};
1926

0 commit comments

Comments
 (0)