@mapbox/geojson-types

    1.0.2 • Public • Published

    geojson-types

    Flow type declarations for GeoJSON.

    Install

    npm install @mapbox/geojson-types
    

    Use

    // @flow
     
    import type {
        GeoJSONFeatureCollection,
        GeoJSONFeature,
     
        // specific geometries
        GeoJSONPoint,
        GeoJSONLineString,
        GeoJSONPolygon,
        GeoJSONMultiPoint,
        GeoJSONMultiLineString,
        GeoJSONMultiPolygon,
     
        // any geometry
        GeoJSONGeometry,
     
        // any feature collection, feature, or geometry
        GeoJSON,
    } from '@mapbox/geojson-types';
     
    function doSomething(data: GeoJSON) {
        // ...
    }

    Keywords

    none

    Install

    npm i @mapbox/geojson-types

    DownloadsWeekly Downloads

    490,548

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    13.5 kB

    Total Files

    37

    Last publish

    Collaborators

    • mapbox-admin
    • mapbox-machine-user
    • mapbox-npm
    • mapbox-npm-01
    • mapbox-npm-02
    • mapbox-npm-03
    • mapbox-npm-04
    • mapbox-npm-05
    • mapbox-npm-06
    • mapbox-npm-07
    • mapbox-npm-08
    • mapbox-npm-09
    • mapbox-npm-advanced-actions
    • mapbox-npm-ci