Generic GeoJSON type definition
How to use
Just install this definition with:
npm install --save @yaga/generic-geojson
and import into your TypeScript source:
The specification of GeoJSON allows every data type for the
In lots of use-cases you want to specify the properties to a special (generic) one.
With this definition you are able to do so.
Every GeoJSON is compatible to the generic one with the
;;;;// This is valid!;
The first generic have the same meaning like the one from the original GeoJSON definition.
Additionally you are able to specify the
properties more precise with the second generic:
The same for
;;;// Same meaning for FeatureCollections: